The OWASP Java Encoder is a Java 1.5+ simple-to-use drop-in high-performance encoder class with no dependencies and little baggage. This project will help Java web developers defend against Cross Site Scripting!
The new behavior changes the encoding of the closing characters "]]>" in such a way that there are no intermediate character between both CDATA sections. This makes the output XML more efficient in a way that there are fewer (child) nodes, and all characters are wrapped within a CDATA-section (particular important if some XML consuming software requires all characters to be wrapped in CDATA...).
Thank you for this excellent patch. We're going to bump the version of this project to 1.2.1 so everyone else can benefit from this. Thank you again and sorry for the delayed response.
between adjacent CDATA sections.
The new behavior changes the encoding of the closing characters "]]>" in such a way that there are no intermediate character between both CDATA sections. This makes the output XML more efficient in a way that there are fewer (child) nodes, and all characters are wrapped within a CDATA-section (particular important if some XML consuming software requires all characters to be wrapped in CDATA...).