Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-6
-
None
-
None
Description
MarkupBuilder does not correctly escape element content that contains end of line characters/sequences. For example, the following:
def b = new MarkupBuilder()
b.element("""test
<<
""")
will generate XML that looks like this:
<element>test
<<
</element>
Note that the "<<" sequence in the XML should be "<<".