Description
Entities are being processed in CDATA sections which appears to be incorrect. A previous issue (#40) provides discussion related to this issue. It appears that this issue was fixed in Version 3 and reintroduced in Version 4. To avoid a breaking change, adding an option to prevent entities from being processed within CDATA sections could be appropriate.
Input
Code
const options = {
ignoreDeclaration: true,
processEntities: true,
}
new (XMLParser(options)).parse(`<Root><a>test></a><b><![CDATA[test>]]></b></Root>`)
Output
{ Root: { a: 'test>', b: 'test>' } }
expected data
{ Root: { a: 'test>', b: 'test>' } }
Would you like to work on this issue?
Bookmark this repository for further updates. Visit SoloThought to know about recent features.
Description
Entities are being processed in CDATA sections which appears to be incorrect. A previous issue (#40) provides discussion related to this issue. It appears that this issue was fixed in Version 3 and reintroduced in Version 4. To avoid a breaking change, adding an option to prevent entities from being processed within CDATA sections could be appropriate.
Input
Code
Output
expected data
Would you like to work on this issue?
Bookmark this repository for further updates. Visit SoloThought to know about recent features.