diff --git a/src/renderers/handlebars-generator.js b/src/renderers/handlebars-generator.js index f928d3f8..765c2b43 100644 --- a/src/renderers/handlebars-generator.js +++ b/src/renderers/handlebars-generator.js @@ -38,7 +38,7 @@ module.exports = { template = HANDLEBARS.compile(tpl, { strict: false, assumeObjects: false, - noEscape: data.opts.noescape + noEscape: !data.opts.escape } ); return template(data); diff --git a/src/verbs/build.js b/src/verbs/build.js index f7907ae8..854fbf7a 100644 --- a/src/verbs/build.js +++ b/src/verbs/build.js @@ -194,7 +194,7 @@ var _prep = function( src, dst, opts ) { _opts.theme = (opts.theme && opts.theme.toLowerCase().trim()) || 'modern'; _opts.prettify = opts.prettify === true; _opts.private = opts.private === true; - _opts.noescape = opts.escape === false; + _opts.escape = opts.escape === true; _opts.css = opts.css; _opts.pdf = opts.pdf; _opts.wrap = opts.wrap || 60;