From f38af0d90b5b10e878f178aee36b084767537ca7 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Tue, 11 Jun 2024 18:56:55 +0200 Subject: [PATCH] :bug: (sendEmail) Fix body HTML parsing invalid escape --- .../blocks/integrations/sendEmail/executeSendEmailBlock.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bot-engine/blocks/integrations/sendEmail/executeSendEmailBlock.tsx b/packages/bot-engine/blocks/integrations/sendEmail/executeSendEmailBlock.tsx index 36161dd870..dc57611f32 100644 --- a/packages/bot-engine/blocks/integrations/sendEmail/executeSendEmailBlock.tsx +++ b/packages/bot-engine/blocks/integrations/sendEmail/executeSendEmailBlock.tsx @@ -48,7 +48,7 @@ export const executeSendEmailBlock = async ( ) const body = bodyUniqueVariable ? stringifyUniqueVariableValueAsHtml(bodyUniqueVariable) - : parseVariables(typebot.variables, { isInsideHtml: true })( + : parseVariables(typebot.variables, { isInsideHtml: !options?.isBodyCode })( options?.body ?? '' )