Add noEscape option to Handlebars.compile
This commit is contained in:
@@ -220,7 +220,7 @@ Handlebars.JavaScriptCompiler = function() {};
|
|||||||
|
|
||||||
this.opcode('invokeMustache', params.length, mustache.id.original, !!mustache.hash);
|
this.opcode('invokeMustache', params.length, mustache.id.original, !!mustache.hash);
|
||||||
|
|
||||||
if(mustache.escaped) {
|
if(mustache.escaped && !this.options.noEscape) {
|
||||||
this.opcode('appendEscaped');
|
this.opcode('appendEscaped');
|
||||||
} else {
|
} else {
|
||||||
this.opcode('append');
|
this.opcode('append');
|
||||||
|
|||||||
Reference in New Issue
Block a user