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

Change the mustache, HTML-escaping behavior #281

Conversation

PhilipNelson5
Copy link
Contributor

@PhilipNelson5 PhilipNelson5 commented Apr 2, 2024

HTML-escaping quotes is a feature of mustache, see janl/mustache.js#13 and the variables section in the docs.

All variables are HTML-escaped by default

The recommendation to disable HTML-escaping is

If you'd like to change HTML-escaping behavior globally (for example, to template non-HTML formats), you can override Mustache's escape function. For example, to disable all escaping: Mustache.escape = function(text) {return text;};.

@PhilipNelson5 PhilipNelson5 deleted the 253-change-html-excaping-behavior branch April 2, 2024 04:26
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.

1 participant