HTML Purifier is a standards-compliant HTML filter library written in PHP. WWW: http://htmlpurifier.org/