Replace html2plain calls by HTML::toPlaintext

This commit is contained in:
Hypolite Petovan 2018-03-07 16:29:44 -05:00
parent b5666bd27f
commit 5e806ff598
6 changed files with 10 additions and 9 deletions

View file

@ -413,7 +413,7 @@ class BBCode extends BaseObject
}
$html = self::convert($post["text"].$post["after"], false, $htmlmode);
$msg = html2plain($html, 0, true);
$msg = HTML::toPlaintext($html, 0, true);
$msg = trim(html_entity_decode($msg, ENT_QUOTES, 'UTF-8'));
$link = "";