From 3446e68ac2aa3f970307b748fee5ee2da1af4ca4 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 26 Apr 2016 11:41:08 +0200 Subject: move spoiler= and quote= bbcode handling from prepare_body() to bbcode() and add open tag to bbco_autocomplete --- include/text.php | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index 0a7f84b01..926e2eed6 100644 --- a/include/text.php +++ b/include/text.php @@ -1532,35 +1532,6 @@ function prepare_body(&$item,$attach = false) { $s = sslify($s); - // Look for spoiler - $spoilersearch = '
'; - - // Remove line breaks before the spoiler - while ((strpos($s, "\n".$spoilersearch) !== false)) - $s = str_replace("\n".$spoilersearch, $spoilersearch, $s); - while ((strpos($s, "
".$spoilersearch) !== false)) - $s = str_replace("
".$spoilersearch, $spoilersearch, $s); - - while ((strpos($s, $spoilersearch) !== false)) { - - $pos = strpos($s, $spoilersearch); - $rnd = random_string(8); - $spoilerreplace = '
'.sprintf(t('Click to open/close')).''. - '