We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const nunjucks = require("nunjucks"); const a = nunjucks.compile("Hello {{ name }}"); console.log(a.render({ name: "world's" }));
Running that file in node results in the following being console logged:
Hello world's
Is there a way to get it to just return
Hello world's
as I think would be expected?
Thanks!
The text was updated successfully, but these errors were encountered:
This is an HTML escape, and it's correct. See https://mozilla.github.io/nunjucks/templating.html#autoescaping
You can either configure it to stop autoescaping https://mozilla.github.io/nunjucks/api.html#autoescaping if you know what you're doing (or using it outside of HTML context), or output the string literally by filtering it | safe — https://mozilla.github.io/nunjucks/templating.html#safe
| safe
Sorry, something went wrong.
No branches or pull requests
Running that file in node results in the following being console logged:
Is there a way to get it to just return
as I think would be expected?
Thanks!
The text was updated successfully, but these errors were encountered: