what code do I nee开发者_C百科d to add inorder to allow the form element and HTML5 when using htmlpurifier?Just reed this http://htmlpurifier.org/docs/enduser-customize.html
How i can get: <p>first<br>p</p> <p>se开发者_StackOverflowcond p</p> from:
How can I use HTMLPurifier to filter xss but al开发者_如何学运维so to allow iframe Vimeo and Youtube video?
I need to write a PHP function which removes opening and closing paragraph tags from a开发者_高级运维 string, but only if they are at the very beginning/end.So the strings:
Is it possible to have htmlpurifier use the html5doctype? The documentation here states that you can change the doctype and encoding with the following:
How to allow custom (html5 data-*) attributes in HtmlPurifier? Input: <img src=\"/my.jpg\" data-type=\"5\" alt=\"\" />
I read a comment about malformed tags being used for XSS attacks. How am I supposed to sanitize against these. If I use a library like HTMLPurifier, does it take of this as part of its work? or is thi
UPDATE 2: http://htmlpurifier.org/phorum/read.php?3,5088,5113 Author has already identified the problem.
This is kind of a special combination of tags that I want to allow in HTMLPurifier, but can\'t seem to get the combination to work.
I\'m trying to run HTMLPurifier on user input from a WYSIWYG (CK Editor) and the images are breaking.