Merge pull request #121 from tablatom/master
Added a noEscape option to Handlebars.compile
This commit is contained in:
@@ -221,7 +221,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