-
-
Notifications
You must be signed in to change notification settings - Fork 303
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
Handle special characters such as '&' #297
Comments
HTML Ampersand Code are currently not supported. This feature is in plan to add along with more features for HTML like empty tag |
Thank you. @amitguptagwl |
Note regarding original implementation in the Description listed above: do not do Also, depending on what you're interfacing with, you may wish to implement |
Please check with v4.0.0-beta.3 |
It doesn't encode the ampersand into |
@FunctionDJ Builder supports following entities: {
"f": {
"@a": "a > b"
}
} <f>
<@a>
a > b
</@a>
</f> |
Yeah that's unfortunate. The software i'm generating an XML for can't handle unescaped ampersands. I'll see if i can use the builder options to replace the ampersand, but right now i'm simply replacing all instances with a Regex, kinda dirty. |
The reason parser needs to escape |
@amitguptagwl Thank you very much!! The regex replace works for my current case, but using a processor is definitely a better idea. |
Description
fast-xml-parser does not handle special characters of tag values.
I can use the option, but I think the default behavior can be changed.
Input
Code
Output
expected data
Would you like to work on this issue?
Bookmark this repository for further updates.
The text was updated successfully, but these errors were encountered: