Skip to content
Snippets Groups Projects
Commit 324ac9df authored by Thomas Citharel's avatar Thomas Citharel
Browse files

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

Fix line breaks in mails text part

See merge request framasoft/framadate/framadate!368
parents 409c5e3d 46e0edc3
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment