]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/NotificationsManager.php
Replace html2plain calls by HTML::toPlaintext
[friendica.git] / src / Core / NotificationsManager.php
index 3d11789e93cad21f57e0a9487db7d5c7aea77a36..aaf6933f0299759b934448a632df3afba363fa29 100644 (file)
@@ -20,7 +20,6 @@ use Friendica\Util\XML;
 
 require_once 'include/dba.php';
 require_once 'include/html2plain.php';
-require_once 'include/bbcode.php';
 
 /**
  * @brief Methods for read and write notifications from/to database
@@ -48,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;
                }