feat: format email text content

This commit is contained in:
Shivam Mishra
2024-12-04 17:49:58 +05:30
parent 89956d006c
commit 12c239228a
@@ -54,7 +54,9 @@ const contentToShow = computed(() => {
});
const textToShow = computed(() => {
return props.contentAttributes?.email?.textContent?.full ?? props.content;
const text =
props.contentAttributes?.email?.textContent?.full ?? props.content;
return text.replace(/\n/g, '<br>');
});
const fromEmail = computed(() => {