Merge pull request #4560 from MrPetovan/task/3878-move-html2_-to-src

[develop] Move include/html2* to src/
This commit is contained in:
Michael Vogel 2018-03-08 20:24:09 +01:00 committed by GitHub
commit 26b6cbcb3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 719 additions and 734 deletions

View file

@ -19,7 +19,6 @@ use Friendica\Util\Temporal;
use Friendica\Util\XML;
require_once 'include/dba.php';
require_once 'include/html2plain.php';
/**
* @brief Methods for read and write notifications from/to database
@ -47,7 +46,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;
}