mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 20:24:26 +02:00
Replace html2plain calls by HTML::toPlaintext
This commit is contained in:
parent
b5666bd27f
commit
5e806ff598
6 changed files with 10 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue