nunjucks-autoescape
v1.0.1
Published
Nunjucks extension that brings a 'autoescape' tag
Downloads
2,005
Readme
Nunjucks autoescape
Nunjucks extension that brings a "autoescape" tag
How to install it?
$ npm install nunjucks-autoescape
How to use it?
var AutoEscapeExtension = require("nunjucks-autoescape")(nunjucks);
env.addExtension('AutoEscapeExtension', new AutoEscapeExtension(env));
{% autoescape false %}
The variable {{ test }} is not escaped!
{% endautoescape %}