A sample ESAPI XML encoder implementation that can handle Unicode surrogate characters.
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)
Compile
mvn package
Test
mvn test
This work is licensed under a Creative Commons Attribution 3.0 Unported License.
Use/modify whatever you like :)