Simon Willison: Safe HTML checker
by fastclemmy & 1 otherThe system I have implemented works by running submitted posts through an XML parser, which checks that each element is in my list of allowed elements, is nested correctly (you can't put a blockquote inside a p for example) and doesn't have any illegal attributes.
No comment on this link yet.