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);
|
||||
|
||||
if(mustache.escaped) {
|
||||
if(mustache.escaped && !this.options.noEscape) {
|
||||
this.opcode('appendEscaped');
|
||||
} else {
|
||||
this.opcode('append');
|
||||
|
||||
Reference in New Issue
Block a user