<iframe> and <script> tags as plain text, so turn it off first. The same steps work for Facebook, X, TikTok and YouTube widgets.
In SnapWidget
- Create your widget, or open an existing widget from your dashboard.
- Click Get Widget. For an existing widget, click Update & Get Widget.
- In the You’re One Step Away window, click Copy To Clipboard.
In Grav
- In the Grav admin, go to Configuration > System. On the Markdown tab, turn off GFM Tag Filter and click Save.
- Click Pages and open the page where you want the widget.
- On the Content tab, paste your code where you want the widget to show.
- Click Save. Grav can show a warning about possible XSS issues in the content. The warning is about the
<script>and<iframe>tags in the code, and it does not stop the save.