mirror of
https://github.com/friendica/friendica
synced 2025-04-26 18:30:11 +00:00
Replace html2bbcode calls by HTML::toBBCode
This commit is contained in:
parent
3bb2f72d05
commit
b5666bd27f
9 changed files with 32 additions and 30 deletions
|
@ -4,6 +4,8 @@
|
|||
*/
|
||||
namespace Friendica\Protocol;
|
||||
|
||||
use Friendica\Content\Text\HTML;
|
||||
|
||||
require_once 'include/html2plain.php';
|
||||
|
||||
/**
|
||||
|
@ -111,7 +113,7 @@ class Email
|
|||
if (trim($ret['body']) == '') {
|
||||
$ret['body'] = self::messageGetPart($mbox, $uid, $struc, 0, 'plain');
|
||||
} else {
|
||||
$ret['body'] = html2bbcode($ret['body']);
|
||||
$ret['body'] = HTML::toBBCode($ret['body']);
|
||||
}
|
||||
} else {
|
||||
$text = '';
|
||||
|
@ -128,7 +130,7 @@ class Email
|
|||
}
|
||||
}
|
||||
if (trim($html) != '') {
|
||||
$ret['body'] = html2bbcode($html);
|
||||
$ret['body'] = HTML::toBBCode($html);
|
||||
} else {
|
||||
$ret['body'] = $text;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue