The simply the best collection of XSS scripts
A standards compliant HTML filter library written in PHP. HTML Purifier will not only remove all malicious code (XSS) with a thoroughly audited, secure yet permissive whitelist, but it will also make sure your documents are standards compliant.