We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The predefined entity seems to be parsed twice. &lt; is expected to be parsed to $lt;. However, it is parsed again to <
&lt;
$lt;
<
<SimpleScalarPropertiesInputOutput> <stringValue>&lt;</stringValue> </SimpleScalarPropertiesInputOutput>
import { XMLParser } from "fast-xml-parser"; const encoded = `<SimpleScalarPropertiesInputOutput> <stringValue>&lt;</stringValue> </SimpleScalarPropertiesInputOutput>`; const parser = new XMLParser({}) const parsed = parser.parse(encoded); console.log(JSON.stringify(parsed, null, 2));
{ "SimpleScalarPropertiesInputOutput": { "stringValue": "<" } }
{ "SimpleScalarPropertiesInputOutput": { "stringValue": "<" } }
Would you like to work on this issue?
It seems to be caused by replacing the escaped value with entity regex in a loop:
fast-xml-parser/src/xmlparser/OrderedObjParser.js
Lines 372 to 375 in 443e8ed
The text was updated successfully, but these errors were encountered:
Hi @amitguptagwl, is there any update?
Sorry, something went wrong.
8cfd915
No branches or pull requests
Description
The predefined entity seems to be parsed twice.
&lt;
is expected to be parsed to$lt;
. However, it is parsed again to<
Input
Code
Output
expected data
Would you like to work on this issue?
If with sufficient guidance.
It seems to be caused by replacing the escaped value with entity regex in a loop:
fast-xml-parser/src/xmlparser/OrderedObjParser.js
Lines 372 to 375 in 443e8ed
The text was updated successfully, but these errors were encountered: