nunjucks-autoescape
1.0.1 • Public • Published 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 %}
Package Sidebar
Install
npm i nunjucks-autoescape
Weekly Downloads