Remove function prepare_text and use BBCode::convert() instead

This commit is contained in:
Philipp Holzer 2019-10-23 00:58:13 +02:00
parent 2c31916757
commit 9e94e8b48c
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
4 changed files with 16 additions and 29 deletions

View file

@ -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
*