converting plain-text mail to html mistakes angle brackets for tags

This commit is contained in:
ralf 2022-12-02 15:24:32 +01:00
parent e72e628c81
commit 70d571f8bf

View File

@ -660,7 +660,7 @@ class mail_compose
$isFirstLoad = "switchedplaintohtml";
//error_log(__METHOD__.__LINE__.$content['mail_plaintext']);
$suppressSigOnTop = true;
$content['mail_plaintext'] = str_replace(array("\r\n","\n","\r"),array("<br>","<br>","<br>"),$content['mail_plaintext']);
$content['mail_plaintext'] = str_replace(['<',"\r\n","\n","\r"], ['&lt;',"<br>","<br>","<br>"], $content['mail_plaintext']);
//$this->replaceEmailAdresses($content['mail_plaintext']);
$content['body'] = $content['mail_plaintext'];
unset($content['mail_plaintext']);