feat(templates): add support for HTML templates
This commit is contained in:
committed by
Linus Rath
parent
0b62afb0f8
commit
0a30b2fb3a
@@ -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, '&').replace(/</g, '<').replace(/>/g, '>').replace(/\n/g, '<br>')}</p>`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user