On Tue, 2013-05-21 at 13:00 +0000, dave.lamb...@gmail.com wrote: > I did a thing about 10 years ago using HTML::TreeBuilder to > remove elements and attributes which aren't on a whitelist.
There's a module for that. Well, several actually, but I settled on HTML::Restrict when I was looking at them for ShinyCMS last year.