Merge branch 'fix/mail/text/linebreaks' into 'develop'

Fix line breaks in mails text part

See merge request framasoft/framadate/framadate!368
This commit is contained in:
Thomas Citharel 2019-04-16 15:15:16 +02:00
commit 324ac9dfcb

View File

@ -136,6 +136,8 @@ class MailService {
private function html2text(PHPMailer $mailer, $html) {
$html = preg_replace('/<a[^>]*href="([^"]+)"[^>]*>(.*?)<\/a>/si', '${2}: ${1}', $html);
$html = preg_replace('/<br\/>/', "\n", $html);
return $mailer->html2text($html);
}
}