diff options
author | Tom Locke <tom@tomlocke.com> | 2011-09-26 09:47:30 +0100 |
---|---|---|
committer | Tom Locke <tom@tomlocke.com> | 2011-09-26 09:47:30 +0100 |
commit | cd927e9cda392ab12f1e0a5e09f86f42573af98a (patch) | |
tree | 91466d72fe83f7781ec329c6b17d20c4cbe58117 | |
parent | b832c85923055d81dbb85cfb52e7b9d9640e0482 (diff) | |
download | handlebars.js-cd927e9cda392ab12f1e0a5e09f86f42573af98a.zip handlebars.js-cd927e9cda392ab12f1e0a5e09f86f42573af98a.tar.gz handlebars.js-cd927e9cda392ab12f1e0a5e09f86f42573af98a.tar.bz2 |
Add noEscape option to Handlebars.compile
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index 0b4c23d..c7d051e 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -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'); |