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
+2 -1
View File
@@ -173,7 +173,8 @@ export function importTemplates(json: string): ImportResult {
id: generateUUID(),
name: sanitizeText(t.name),
subject: sanitizeText(t.subject),
body: sanitizeText(t.body),
body: t.isHTML ? String(t.body || '') : sanitizeText(t.body),
isHTML: Boolean(t.isHTML),
category: sanitizeText(t.category),
defaultRecipients: recipients && typeof recipients === 'object'
? {