78 if (!str_contains($email_body,
'<') || !str_contains($email_body,
'>')) {
Composes the HTML representation of a mail body, and the plain text alternative that goes with it.
__construct(private readonly MailAssets $assets, private readonly PlainTextMailBodyComposer $plain_text, private readonly UIFactory $ui, private readonly Renderer $renderer, private readonly Refinery $refinery, private readonly DataFactory $data, private readonly string $installation_title, private readonly string $installation_url)
containsHtml(string $email_body)
compose(MailBodySource $source)
const string BLOCK_ELEMENT_PATTERN
Turns a mail body into plain text, for installations with HTML mails disabled and for the alternative...