tags:

views:

81

answers:

2

How do I allow <style> tags in html purifier http://htmlpurifier.org/?

+1  A: 

Install CSSTidy and hook it up to Filter.ExtractStyleBlocks http://htmlpurifier.org/live/configdoc/plain.html#Filter.ExtractStyleBlocks

You'll need a story on the calling code to get the style block contents to somewhere appropriate.

Edward Z. Yang
+1  A: 

HTML <style> tags should appear in the head of a document. HTML Purifier only works on the body of the document.

TRiG