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

Expose tag name encoding #65

Closed
josh-hemphill opened this issue Dec 5, 2020 · 1 comment
Closed

Expose tag name encoding #65

josh-hemphill opened this issue Dec 5, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@josh-hemphill
Copy link

Is your feature request related to a problem? Please describe.
When implementing your own element parser, all XML illegal characters have to be manually escaped.

Describe the solution you'd like
Some way to reimplement this behavior in custom parser functions.

Describe alternatives you've considered
Importing the dom or utils library that xmlbuilder2 uses, but I was not able to find what function xmlbuilder2 is using internally.

@josh-hemphill josh-hemphill added the enhancement New feature or request label Dec 5, 2020
@oozcitak
Copy link
Owner

oozcitak commented Dec 5, 2020

If you are asking about the character production in the XML spec, I can expose the internal function to the parser.

Edit: Here is the function: https://github.com/oozcitak/xmlbuilder2/blob/master/src/builder/dom.ts#L34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants