From 722e03cc58ed636fa1a3ace1b12ccd4d92e4ed08 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 8 May 2017 17:29:46 +0000 Subject: [PATCH] Added documentation --- include/bbcode.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/bbcode.php b/include/bbcode.php index 4b5384a615..9518fe7dd1 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -170,6 +170,11 @@ function cleancss($input) { 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) { $url = $match[1]; @@ -203,7 +208,6 @@ function bb_style_url($match) { } } - function stripcode_br_cb($s) { return '[code]' . str_replace('
', '', $s[1]) . '[/code]'; }