Function: textToHtml()
textToHtml(
text):string
Defined in: src/lib/pipeline/email-draft.ts:77
Render a plain-text email body to minimal, safe HTML: blank-line-separated blocks become
, and
single newlines within a block become
. All text is HTML-escaped first (the body is rep-edited
free text). Used to populate the html field of the email seam alongside the plain text.
Parameters
text
string
Returns
string