Add noEscape option to Handlebars.compile

This commit is contained in:
Tom Locke
2011-09-26 09:47:30 +01:00
parent b832c85923
commit cd927e9cda
+1 -1
View File
@@ -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');