]> git.mxchange.org Git - friendica.git/blobdiff - include/text.php
Remove function prepare_text and use BBCode::convert() instead
[friendica.git] / include / text.php
index e4393b09caeef38bb1e61fd3d8aa0193ac338d3f..84efebac2de123fe2738f96e7a79a60b2a1d2e88 100644 (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
  *