diff --git a/src/template_engine.mjs b/src/template_engine.mjs index ff7cd61..3e19dc4 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 -Rr @html;\n`; + return `printf '%s' "${value}" | jq -Rr @html | head -c -1;\n`; } _renderInlineUnescaped(value) { @@ -57,7 +57,7 @@ export class TemplateEngine { } _renderInlineStatement(value) { - return `printf '%s' "$(${value})" | jq -Rr @html;\n`; + return `printf '%s' "$(${value})" | jq -Rr @html | head -c -1;\n`; } _renderInlineStatementUnescaped(value) {