Purify is stripping ckeditor <oembed> custome tags
Closed this issue · 2 comments
Im using purify as my primary sanitization package together with ckeditor to embed media objects like youtube videos and twitter tweets? ckeditor add these object inside custom html tage.
<oembed>https://www.youtube.com/watch?v=H08tGjXNHO4</oembed>
<oembed>http://www.slideshare.net/esaops/rosetta-comet-landing-press-kit-12-nov-2014</oembed>
<oembed>https://twitter.com/Philae2014/status/610047412036595712</oembed>
unfortunately, Purify is automatically stripping these tages from published blade template, so im getting this instead
https://www.youtube.com/watch?v=H08tGjXNHO4
http://www.slideshare.net/esaops/rosetta-comet-landing-press-kit-12-nov-2014 https://twitter.com/Philae2014/status/610047412036595712
dos anybody have an idea on how to solve this problem? or maybe adding customer tags to allowed html tags in purify.
Hi @nhayder, you will likely need to create your own custom element to allow this:
http://htmlpurifier.org/docs/enduser-customize.html
This issue seems to have been reported a couple times with the underlying HTMLPurifier package:
http://htmlpurifier.org/phorum/read.php?3,7823
http://htmlpurifier.org/phorum/read.php?3,7298
Closing due to inactivity.