Antisamy-filter is a project mainly written in Java, based on the View license.
A Java filter using the OWASP AntiSamy API to help prevent XSS vulnerabilities
== How to use? Define the following in your web.xml
<filter>
<filter-name>antisamy-filter</filter-name>
<filter-class>org.owasp.AntiSamyFilter</filter-class>
<init-param>
<param-name>antisamy-policy-file</param-name>
<param-value>c:/directory/policy.xml</param-value>
</init-param>
</filter>