Added documentation
This commit is contained in:
@@ -170,6 +170,11 @@ function cleancss($input) {
|
|||||||
return $cleaned;
|
return $cleaned;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Converts [url] BBCodes in a format that looks fine on Mastodon.
|
||||||
|
* @param array $match Array with the matching values
|
||||||
|
* @return string replaced value
|
||||||
|
*/
|
||||||
function bb_style_url($match) {
|
function bb_style_url($match) {
|
||||||
$url = $match[1];
|
$url = $match[1];
|
||||||
|
|
||||||
@@ -203,7 +208,6 @@ function bb_style_url($match) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function stripcode_br_cb($s) {
|
function stripcode_br_cb($s) {
|
||||||
return '[code]' . str_replace('<br />', '', $s[1]) . '[/code]';
|
return '[code]' . str_replace('<br />', '', $s[1]) . '[/code]';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user