When converting from xml string to js object, &
might be double escaped
#98
Labels
bug
Something isn't working
&
might be double escaped
#98
Describe the bug
To Reproduce
https://stackblitz.com/edit/node-rmf2h7?devtoolsheight=33&file=index.js
run
node index.js
to produce outputExpected behavior
I might have misunderstood your design. I just thought the parser should either preserve the original string or unescape it.
Double escape the
&
seems to be strange behavior.Version:
Additional context
I'm using your util to build the next major version of an RSS feed reader + generator. I'm following these examples to handle several html encoding scenarios. My primary use case is xml -> json but my tool will also handle feed generation so I really hope I can get the bi-directional conversion working with a single library. Thanks for the high quality work!
The text was updated successfully, but these errors were encountered: