Merge pull request #121 from tablatom/master

Added a noEscape option to Handlebars.compile
This commit is contained in:
Yehuda Katz
2011-12-23 16:57:39 -08:00
+1 -1
View File
@@ -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');