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

useNamedReferences doesn't work for all characters #74

Open
carolinex opened this issue Jul 12, 2019 · 0 comments
Open

useNamedReferences doesn't work for all characters #74

carolinex opened this issue Jul 12, 2019 · 0 comments

Comments

@carolinex
Copy link

carolinex commented Jul 12, 2019

While setting useNamedReferences to true and encodeEverything to true, the character / is encoded as / but the character \ is encoded as \ The same happens with the hyphen/minus character, which is encoded as -

var entity = he.encode(html, {
          useNamedReferences: true,
          encodeEverything: true
})
@carolinex carolinex changed the title allowUnsafeSymbols useNamedReferences doesn't work for all characters Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant