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

Spacing before and after special characters like & (&) is removed. #98

Closed
JasonTowner opened this issue Aug 27, 2014 · 5 comments
Closed

Comments

@JasonTowner
Copy link

Elements which contain ampersands aren't being consistently evaluated. The spacing before and/or after the ampersand is being removed.

Example data:

<element>foo &amp; bar</element>

Results in:
"foo&bar" without the spaces, instead of "foo & bar"

@lloydwatkin
Copy link
Contributor

Hi,

I've just added a test for this (see e1b976f) and am not experiencing the issue there.

I suspect any problems with this are actually down to libexpat rather than this library, since this is just a wrapper. If you can get a test case together I'm happy to investigate.

@JasonTowner
Copy link
Author

Sounds good. I'll take a deeper look into the issue.

@JasonTowner
Copy link
Author

I apologize, the issue wasn't within node-expat, but rather in node-expat itself. Thanks for the help, and if anything we got another test case added, lol. Thanks

@lloydwatkin
Copy link
Contributor

I assume you mean libexpat? Is there an issue raised for this? Could you link it in here please?

@JasonTowner
Copy link
Author

I apologize for writing node-expat, I meant to say it's an issue with node-xml2json.
If it's helpful, here's a link to the issue in xml2json: buglabs/node-xml2json#69

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

No branches or pull requests

2 participants