Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 978 Bytes

File metadata and controls

29 lines (18 loc) · 978 Bytes

ESAPI-surrogate-encoder

A sample ESAPI XML encoder implementation that can handle Unicode surrogate characters.

Description

It is a sample ESAPI (https://www.owasp.org/index.php/Category:OWASP_Enterprise_Security_API) XML encoder implementation that can handle Unicode surrogate characters. It only covers following 2 APIs

ESAPI.encoder().encodeForXML(String)
ESAPI.encoder().encodeForXMLAttribute(String)

Usage

Compile

mvn package

Test

mvn test

License

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License. Use/modify whatever you like :)