Last active
June 12, 2024 18:03
-
-
Save johnfmorton/1f92f09ab3b2ffd23e4df4c06b0333a8 to your computer and use it in GitHub Desktop.
Sample HTMLPurifier config to allow YouTube and Vimeo embeds - used with CKEditor in Craft CMS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"HTML.SafeIframe": true, | |
"URI.SafeIframeRegexp": "%^(https?:)?//(www.youtube.com/|youtube.com/|youtu.be/|player.vimeo.com/)%" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've updated this Gist with additional YouTube URL options.