Skip to content
This repository has been archived by the owner on Jan 7, 2021. It is now read-only.

Spacing before and/or after special characters like & is being stripped out #69

Closed
JasonTowner opened this issue Aug 28, 2014 · 2 comments

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"

@JasonTowner
Copy link
Author

This happens when trim is set to true, but instead of trimming the entire string " foo & bar " to "foo & bar" it's trimming each individual word and then concatenating them back together to form "foo&bar"

@c4milo
Copy link
Contributor

c4milo commented Feb 20, 2015

@JasonTowner sorry it took me so long to fix this issue. I will be publishing a new version in NPM soon.

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

No branches or pull requests

2 participants