Skip to content

Commit

Permalink
Add HTML purifier config to allow for Youtube & Vimeo embeds
Browse files Browse the repository at this point in the history
  • Loading branch information
kerrig committed Oct 14, 2019
1 parent 7414d4a commit cdb9ac0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/htmlpurifier/Standard.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"Attr.AllowedFrameTargets": ["_blank"],
"Attr.EnableID": true,
"HTML.AllowedComments": ["pagebreak"],
"HTML.SafeIframe": true,
"URI.SafeIframeRegexp": "%^(https?:)?//(www\\.youtube(?:-nocookie)?\\.com/embed/|player\\.vimeo\\.com/video/)%"
}

0 comments on commit cdb9ac0

Please sign in to comment.