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:
commit
324ac9dfcb
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user