Perl: the Markov chain saw | |
PerlMonks |
Safe HTML output?by gav^ (Curate) |
on Jan 19, 2002 at 22:17 UTC ( [id://140102]=perlquestion: print w/replies, xml ) | Need Help?? |
gav^ has asked for the wisdom of the Perl Monks concerning the following question:
I'm working on a web based app where I want to let my users type in HTML. This is my first pass at parsing out anything that would be considered unsafe and would appreciate some comments. I did have the handlers nested inside safe_html but that gives warnings about %tags and $html not staying shared. I'm not 100% what the best way around this is, I want to stick to a single subroutine so it's easy for other to use.
Thanks. gav^
gav^
Back to
Seekers of Perl Wisdom
|
|