Contributed by: sardu on Friday, February 28 2003 @ 06:12 pm EST
Last modified on
Anyone who's paranoid about HTML in user comments, cross-site scripting attacks, or even just me coming along and covering up your site logo with nasty images[*1] should look at Simon Willison's SafeHtmlChecker[*2] php class. Elegant solution (and it'll help with XHTML validation too).