mirror of
https://github.com/friendica/friendica
synced 2025-04-28 03:50:17 +00:00
Refactor bbcode() into BBCode::convert()
This commit is contained in:
parent
29f5270313
commit
0c52866693
21 changed files with 89 additions and 73 deletions
|
@ -832,7 +832,7 @@ class DFRN
|
|||
}
|
||||
}
|
||||
if ($r->content) {
|
||||
XML::addElement($doc, $entry, "content", bbcode($r->content), ["type" => "html"]);
|
||||
XML::addElement($doc, $entry, "content", BBCode::convert($r->content), ["type" => "html"]);
|
||||
}
|
||||
|
||||
return $entry;
|
||||
|
@ -938,7 +938,7 @@ class DFRN
|
|||
$htmlbody = "[b]".$item['title']."[/b]\n\n".$htmlbody;
|
||||
}
|
||||
|
||||
$htmlbody = bbcode($htmlbody, false, false, 7);
|
||||
$htmlbody = BBCode::convert($htmlbody, false, 7);
|
||||
}
|
||||
|
||||
$author = self::addEntryAuthor($doc, "author", $item["author-link"], $item);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue