There's a module based on HTML::Parser for this on my pages (not released to CPAN) that allows you just that and more. It allows you to specify not just the list of tags to allow, but also the attributes. So not more unexpected onMouseOvers and onLoads ;-)
Just the module name is a bit silly ...
Jenda
| XML sucks. Badly. SOAP on the other hand is the most powerfull vacuum pump ever invented. |
In reply to Re: HTML::Strip question--stripping only certain tags?
by Jenda
in thread HTML::Strip question--stripping only certain tags?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |