Safe HTML Comment checker

??Simon Willison?? has enabled a subset of HTML in his comments by writing his own XML parser to check validity

bq. The 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.

This post was brought to you by the numbers 2, 6 and 3 and the plugin “Textile (Brad Choate: MT-Textile)”:http://www.bradchoate.com/past/mttextile.php

Comments are closed.