Welcome to Geeklog Tuesday, June 18 2013 @ 01:13 AM EDT
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 should look at Simon Willison's SafeHtmlChecker php class. Elegant solution (and it'll help with XHTML validation too).
The following comments are owned by whomever posted them. This site is not responsible for what they say.