-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Required escaping missing in version 2 #43
Comments
Hi, thank you for the heads up! That is indeed what's happening - I am not sure what's going on in your use case, but I could see that it may be useful to force turning off the double-encoding check. Will look into what it would take to add that. |
How about disallow double-encoding only for these values:
|
Sorry for the delay! You can now achieve these sort of results by passing in a custom contentMap() function which runs after the the replacements have been made. In your case you should be able to do something like this: toXML(obj, {
contentMap: (val) => val.replaceAll('&', '&')
}); |
Hi, v2 doesn't escape the '&' sign everywhere, but '&' needs to be always escaped
For example:
"capacité"
Result in v1 (as it should be):
"capacité"
Result in v2 is unchanged, not escaped
In v1 I use these filters:
In v2 using the same settings doesn't work
For reference see:
https://www.freeformatter.com/xml-escape.html
Related to #41
Maybe this caused the problem?
The text was updated successfully, but these errors were encountered: