From 9e53a2d74b4b509fa14339832550ad3e4cceefb5 Mon Sep 17 00:00:00 2001 From: Pierre GIRAUD Date: Fri, 17 Mar 2023 08:59:28 +0100 Subject: [PATCH] Don't escape values in list filter (output tab) For that we also use the "interpolate" delimiter in _.template. Fixes #572 --- src/filters.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filters.ts b/src/filters.ts index 52357401..7fff797e 100644 --- a/src/filters.ts +++ b/src/filters.ts @@ -144,10 +144,10 @@ export function percent(value: number): string { export function list(value: string[] | string): string { if (typeof value === "string") { - value = _.escape(value).split(/\s*,\s*/) + value = value.split(/\s*,\s*/) } const compiled = _.template( - "<% _.forEach(lines, function(line) { %>
  • <%- line %>
  • <% }); %>" + "<% _.forEach(lines, function(line) { %>
  • <%= line %>
  • <% }); %>" ) return '" }