I\'m wondering if anybody has used this class and found it to be reliable?
http://www.phpclasses.org/package/3746-PHP-Remove-unsafe-tags-and-attributes-from-HTML-cod
i recommend http://htmlpurifier.org/ HTML Purifier for cleaning strings safely.