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 #282

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;};.

closes #235

@PhilipNelson5 PhilipNelson5 force-pushed the 247-change-html-excaping-behavior branch from ca5ff16 to 83f04f5 Compare April 2, 2024 04:41
@PhilipNelson5
Copy link
Contributor Author

@NilsJPWerner any comments on this PR?

@NilsJPWerner
Copy link
Owner

Looks good!

@NilsJPWerner NilsJPWerner merged commit c1f9605 into NilsJPWerner:master Apr 10, 2024
5 checks passed
@PhilipNelson5 PhilipNelson5 deleted the 247-change-html-excaping-behavior branch April 10, 2024 20:51
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.

Argument with Literal strings type hint badly formatted
2 participants