xml entity parsing issue when calling `toString()` on Java objects

Description

xml entity parsing issue when calling toString() on Java objects

@Test public void testXMLInStringBuffer() { // @formatter:off instance.executeSource( """ buffer = createObject( "java", "java.lang.StringBuffer" ).init(); buffer.append( '<cfcomponent>' ); buffer.append( '<\\cfcomponent>' ); result = buffer.toString(); println( result ); """, context, BoxSourceType.CFSCRIPT ); // @formatter:on }

error

[Fatal Error] :1:15: The content of elements must consist of well-formed character data or markup. <cfcomponent><\cfcomponent>

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created September 5, 2024 at 10:23 PM
Updated September 5, 2024 at 10:24 PM
Resolved September 5, 2024 at 10:24 PM