1
0
Fork 0

Strip all tags from plaintext mail

master
Anonymous Contributor 2023-09-06 17:35:56 +02:00
parent f9453d5dec
commit fc0412d50a
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class SmtpClient
private static function htmlToPlain($message): string
{
$messageNew = str_replace('<br/>', "\n", $message);
$messageNew = preg_replace('/<a href="(.*)">(.*)<\\/a>/', "$2: $1", $messageNew);
$messageNew = strip_tags(preg_replace('/<a href="(.*)">(.*)<\\/a>/', "$2: $1", $messageNew));
return $messageNew;
}