feat(templates): add support for HTML templates

This commit is contained in:
Marc Sportiello
2026-07-19 10:10:31 +02:00
committed by Linus Rath
parent 0b62afb0f8
commit 0a30b2fb3a
6 changed files with 17 additions and 4 deletions
+1 -1
View File
@@ -1092,7 +1092,7 @@ export function EmailComposer({
: template.body;
// In plain text mode, use template body as-is; otherwise convert to HTML
const bodyContent = plainTextMode
const bodyContent = plainTextMode || template.isHTML
? filledBody
: `<p>${filledBody.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\n/g, '<br>')}</p>`;