diff options
author | Yehuda Katz <wycats@gmail.com> | 2011-12-23 16:57:39 -0800 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2011-12-23 16:57:39 -0800 |
commit | 647d5adf85c8d845cd0a614e8e4c8dffbe64cf09 (patch) | |
tree | e4d0442977a6e6e96a471ac73334a2c103687959 /lib/handlebars/compiler/compiler.js | |
parent | 6df51733d338a261f0d159dfa2ccc5f3cd99b500 (diff) | |
parent | cd927e9cda392ab12f1e0a5e09f86f42573af98a (diff) | |
download | handlebars.js-647d5adf85c8d845cd0a614e8e4c8dffbe64cf09.zip handlebars.js-647d5adf85c8d845cd0a614e8e4c8dffbe64cf09.tar.gz handlebars.js-647d5adf85c8d845cd0a614e8e4c8dffbe64cf09.tar.bz2 |
Merge pull request #121 from tablatom/master
Added a noEscape option to Handlebars.compile
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-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 39213e7..039a34e 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -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'); |