![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re^2: XSS-Bug in HTML::BBCodeby clinton (Priest) |
on Aug 14, 2007 at 14:25 UTC ( #632506=note: print w/replies, xml ) | Need Help?? |
You might consider using HTML::StripScripts (I'm the maintainer) as a filter for your output HTML. It'll filter tags, attributes and styles. Instead of returning the HTML directly, you would need to feed it tokens like start and end tags with attributes, content etc, and set the level of filtering that you would like. Have a look at HTML::StripScripts::Parser and HTML::StripScripts::LibXML for ideas of how to interface with HTML::Stripscripts. Clint
In Section
Seekers of Perl Wisdom
|
|