Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
AntiXSS for Java is a port of the Microsoft Anti-Cross Site Scripting (AntiXSS) v1.5 library for .NET applications. The library requires Java 1.4 or higher, but has no other prerequisites.
Java
branch: master

Added link to the open source license, which was missing (whoops!). N…

…ote, AntiXSS, although it is a port of the API of the Microsoft library it is a re-implementation, and as such is not Microsoft code, or licensed under the Microsoft license.
latest commit 672ae796b6
@justinclarke justinclarke authored

README

AntiXSS for Java is a port of the Microsoft Anti-Cross Site Scripting (AntiXSS) v1.5 library for .NET applications. The library requires Java 1.4 or higher, but has no other prerequisites.

For those not familiar with the Microsoft AntiXSS library, it is an output encoding library for avoiding Cross Site Scripting vulnerabilities. Specifically it is intended to safely encode information written to the user's browser within a specific context (i.e. if writing a string into the HTML of a page, you need to use the correct function - HtmlEncode). Unlike some other solutions the library implements a white listing approach, and encodes everything except characters known to be harmless. For example, the string <script> will be HTML encoded as &#60;script&#62;.

A description of the methods supported, and the encoding performed, can be found on the GDS Blog at http://www.gdssecurity.com/l/b/2007/12/29/antixss-for-java/

AntiXSS is released under the Open Source Reciprocal Public License 1.5. A copy of the license can be obtained at http://www.opensource.org/licenses/RPL-1.5
Something went wrong with that request. Please try again.