* Notifications: activate links when creating a html mail from a plain-text one

This commit is contained in:
Ralf Becker 2012-10-30 16:34:27 +00:00
parent 49a0d70324
commit 10e2e6556a

View File

@ -554,7 +554,7 @@ final class notifications {
if(!empty($_message_plain)) { if(!empty($_message_plain)) {
$messages['plain'] = $_message_plain; $messages['plain'] = $_message_plain;
} else { } else {
$messages['plain'] = strip_tags($_message_html); $messages['plain'] = translation::convertHTMLToText($_message_html, false, true);
} }
if(!empty($_message_html)) { if(!empty($_message_html)) {
@ -574,7 +574,7 @@ final class notifications {
*/ */
public static function plain2html($_plain) public static function plain2html($_plain)
{ {
return nl2br(html::htmlspecialchars($_plain, true)); return html::activate_links(nl2br(html::htmlspecialchars($_plain, true)));
} }
/** /**