1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-21 16:00:11 +00:00

Merge pull request #184 from ryneeverett/noescape

Don't do html escaping. Fix #157.
This commit is contained in:
hacksalot 2018-01-25 02:27:32 -05:00 committed by GitHub
commit 3dc6ff2158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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