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

encode: Add options for escape #28

Closed
wants to merge 1 commit into from
Closed

Conversation

akihikodaki
Copy link

This allows to escape only characters to be escaped.

escQuot or escApos should be enabled for attributes. They are disabled by default.
outputUtf8 should be true to prevent from escaping non-ASCII code. Especially it makes difference for non-English writers. The option is necessary to fix cheeriojs/dom-serializer#26 and enabled by default.

This allows to escape only characters to be escaped.
@fb55
Copy link
Owner

fb55 commented Jan 20, 2018

Breaking change, closing.

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

Successfully merging this pull request may close these issues.

special HTML / XML characters are not encoded if decodeEntities is false
2 participants