mirror of
https://github.com/friendica/friendica
synced 2025-05-17 09:04:10 +02:00
Remove function prepare_text and use BBCode::convert() instead
This commit is contained in:
parent
2c31916757
commit
9e94e8b48c
4 changed files with 16 additions and 29 deletions
|
@ -17,19 +17,6 @@ function activity_match($haystack,$needle) {
|
|||
return (($haystack === $needle) || ((basename($needle) === $haystack) && strstr($needle, NAMESPACE_ACTIVITY_SCHEMA)));
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Given a text string, convert from bbcode to html and add smilie icons.
|
||||
*
|
||||
* @param string $text String with bbcode.
|
||||
* @return string Formatted HTML
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
*/
|
||||
function prepare_text($text)
|
||||
{
|
||||
$s = BBCode::convert($text);
|
||||
return trim($s);
|
||||
}
|
||||
|
||||
/**
|
||||
* return array with details for categories and folders for an item
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue