diff --git a/notifications/inc/class.notifications.inc.php b/notifications/inc/class.notifications.inc.php index 518ea4ffa9..27f27ab11f 100644 --- a/notifications/inc/class.notifications.inc.php +++ b/notifications/inc/class.notifications.inc.php @@ -554,7 +554,7 @@ final class notifications { if(!empty($_message_plain)) { $messages['plain'] = $_message_plain; } else { - $messages['plain'] = strip_tags($_message_html); + $messages['plain'] = translation::convertHTMLToText($_message_html, false, true); } if(!empty($_message_html)) { @@ -574,7 +574,7 @@ final class notifications { */ public static function plain2html($_plain) { - return nl2br(html::htmlspecialchars($_plain, true)); + return html::activate_links(nl2br(html::htmlspecialchars($_plain, true))); } /**