From c00c2a4af36743925672b4489f9947ba4b6718e5 Mon Sep 17 00:00:00 2001 From: Ben Ashton Date: Mon, 5 Sep 2022 19:20:27 -0600 Subject: [PATCH] Allow new lines in html escaped output --- src/template_engine.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/template_engine.mjs b/src/template_engine.mjs index b4fbf19..ff7cd61 100644 --- a/src/template_engine.mjs +++ b/src/template_engine.mjs @@ -49,7 +49,7 @@ export class TemplateEngine { } _renderInline(value) { - return `printf '%s' "${value}" | jq -Rrj @html;\n`; + return `printf '%s' "${value}" | jq -Rr @html;\n`; } _renderInlineUnescaped(value) { @@ -57,7 +57,7 @@ export class TemplateEngine { } _renderInlineStatement(value) { - return `printf '%s' "$(${value})" | jq -Rrj @html;\n`; + return `printf '%s' "$(${value})" | jq -Rr @html;\n`; } _renderInlineStatementUnescaped(value) {