]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/NotificationsManager.php
Replace html2plain calls by HTML::toPlaintext
[friendica.git] / src / Core / NotificationsManager.php
index 0e552d2e09620207632ffec2c58e7eb61badb4f5..aaf6933f0299759b934448a632df3afba363fa29 100644 (file)
@@ -47,7 +47,7 @@ class NotificationsManager extends BaseObject
                        $n['timestamp'] = strtotime($local_time);
                        $n['date_rel'] = Temporal::getRelativeDate($n['date']);
                        $n['msg_html'] = BBCode::convert($n['msg'], false);
-                       $n['msg_plain'] = explode("\n", trim(html2plain($n['msg_html'], 0)))[0];
+                       $n['msg_plain'] = explode("\n", trim(Friendica\Content\Text\HTML::toPlaintext($n['msg_html'], 0)))[0];
 
                        $rets[] = $n;
                }