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

"'" being changed to single quote #178

Open
marcioggs opened this issue Nov 18, 2021 · 2 comments
Open

"'" being changed to single quote #178

marcioggs opened this issue Nov 18, 2021 · 2 comments

Comments

@marcioggs
Copy link

' is being parsed to a single quote when converting XML to JS and then from JS back to XML.
Is this a bug? I couldn't find any argument to change this behavior.

console.log(convert.js2xml(convert.xml2js('<source>prefix &apos; suffix</source>')));

// Result:
// <source>prefix ' suffix</source>

Thanks.

@alexduarte92
Copy link

I also got this same problem. Hope to get help!

@anhuet
Copy link

anhuet commented Sep 26, 2023

Any update on this? I got same problem

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

3 participants