Skip to content
New issue

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

Escaped Unicode codepoints in parsed input converted to character when serialized #234

Open
agj opened this issue Mar 18, 2018 · 2 comments

Comments

@agj
Copy link

agj commented Mar 18, 2018

I have the following occurring to me:

new xmldom.XMLSerializer().serializeToString(new xmldom.DOMParser().parseFromString('<node>&#x0009;</node>'))
// Returns:  '<node>\t</node>'
// Expected: '<node>&#x0009;</node>'

I believe that this occurs during serialization. Is this intended behavior? If so, how can I make it output escaped characters instead?

Thanks much.

@amitguptagwl
Copy link

This project is not active anymore. You can try fast-xml-parser instead

@agj
Copy link
Author

agj commented Jan 14, 2019

Thank you, @amitguptagwl. I don't even quite remember what I was trying to use this for anymore, but your recommendation is duly noted. 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants