From 406d3358eb03dea6a146339ab0a1af9b089d3fbd Mon Sep 17 00:00:00 2001 From: ryneeverett Date: Wed, 14 Dec 2016 21:14:45 -0500 Subject: [PATCH] Don't do html escaping. Fix #157. --- dist/renderers/handlebars-generator.js | 3 ++- src/renderers/handlebars-generator.coffee | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/renderers/handlebars-generator.js b/dist/renderers/handlebars-generator.js index 04437d8..7466446 100644 --- a/dist/renderers/handlebars-generator.js +++ b/dist/renderers/handlebars-generator.js @@ -38,7 +38,8 @@ Definition of the HandlebarsGenerator class. try { template = HANDLEBARS.compile(tpl, { strict: false, - assumeObjects: false + assumeObjects: false, + noEscape: true }); return template(data); } catch (_error) { diff --git a/src/renderers/handlebars-generator.coffee b/src/renderers/handlebars-generator.coffee index e4db745..15b680d 100644 --- a/src/renderers/handlebars-generator.coffee +++ b/src/renderers/handlebars-generator.coffee @@ -29,7 +29,8 @@ HandlebarsGenerator = module.exports = try # Compile and run the Handlebars template. - template = HANDLEBARS.compile tpl, {strict: false, assumeObjects: false} + template = HANDLEBARS.compile tpl, { + strict: false, assumeObjects: false, noEscape: true} return template data catch throw