http://www.perlmonks.org?node_id=140106


in reply to Safe HTML output?

Not a solution to your immediate problem, but I've found that the safe html solution that Everything's engine offers (with both tags and attributes settable) to be quite good for clean HTML parsing. It ammounts to basically the same as what you're trying to do above, but I believe Everything's requires no extra modules.

-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
"I can see my house from here!"
It's not what you know, but knowing how to find it if you don't know that's important