mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-25 09:50:11 +00:00
Merge pull request #184 from ryneeverett/noescape
Don't do html escaping. Fix #157.
This commit is contained in:
commit
3dc6ff2158
3
dist/renderers/handlebars-generator.js
vendored
3
dist/renderers/handlebars-generator.js
vendored
@ -38,7 +38,8 @@ Definition of the HandlebarsGenerator class.
|
|||||||
try {
|
try {
|
||||||
template = HANDLEBARS.compile(tpl, {
|
template = HANDLEBARS.compile(tpl, {
|
||||||
strict: false,
|
strict: false,
|
||||||
assumeObjects: false
|
assumeObjects: false,
|
||||||
|
noEscape: true
|
||||||
});
|
});
|
||||||
return template(data);
|
return template(data);
|
||||||
} catch (_error) {
|
} catch (_error) {
|
||||||
|
@ -29,7 +29,8 @@ HandlebarsGenerator = module.exports =
|
|||||||
|
|
||||||
try
|
try
|
||||||
# Compile and run the Handlebars template.
|
# 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
|
return template data
|
||||||
catch
|
catch
|
||||||
throw
|
throw
|
||||||
|
Loading…
Reference in New Issue
Block a user