Allow new lines in html escaped output

This commit is contained in:
Ben Ashton 2022-09-05 19:20:27 -06:00
parent d9749da99f
commit c00c2a4af3

View File

@ -49,7 +49,7 @@ export class TemplateEngine {
} }
_renderInline(value) { _renderInline(value) {
return `printf '%s' "${value}" | jq -Rrj @html;\n`; return `printf '%s' "${value}" | jq -Rr @html;\n`;
} }
_renderInlineUnescaped(value) { _renderInlineUnescaped(value) {
@ -57,7 +57,7 @@ export class TemplateEngine {
} }
_renderInlineStatement(value) { _renderInlineStatement(value) {
return `printf '%s' "$(${value})" | jq -Rrj @html;\n`; return `printf '%s' "$(${value})" | jq -Rr @html;\n`;
} }
_renderInlineStatementUnescaped(value) { _renderInlineStatementUnescaped(value) {