Don't do html escaping. Fix #157.

This commit is contained in:
ryneeverett 2016-12-14 21:14:45 -05:00
parent 0cd59416b8
commit 406d3358eb
2 changed files with 4 additions and 2 deletions

View File

@ -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) {

View File

@ -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