From 95f4db4f48f2356ea94eda8255e4e7e4df769ded Mon Sep 17 00:00:00 2001 From: LP B Date: Tue, 19 Jul 2022 14:05:18 +0200 Subject: [PATCH] fix(app/templates): handle special characters in mustache templates [EE-3708] (#7288) --- app/react/portainer/custom-templates/components/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/react/portainer/custom-templates/components/utils.ts b/app/react/portainer/custom-templates/components/utils.ts index a8d476f63..315fd4a92 100644 --- a/app/react/portainer/custom-templates/components/utils.ts +++ b/app/react/portainer/custom-templates/components/utils.ts @@ -68,5 +68,5 @@ export function renderTemplate( ) ); - return Mustache.render(template, state); + return Mustache.render(template, state, undefined, { escape: (t) => t }); }