remove some fancy formatting.

(cherry picked from commit aaab905e72)
This commit is contained in:
phani00
2018-12-18 11:37:51 +00:00
committed by Mario
parent 163754a46c
commit 4d47b098e5
2 changed files with 0 additions and 5 deletions

View File

@@ -1022,7 +1022,6 @@ function bbcode($Text, $options = []) {
// Check for colored text
if (strpos($Text,'[/hl]') !== false) {
$Text = preg_replace("(\[hl\](.*?)\[\/hl\])ism", "<span class=\"default-highlight\">$1</span>", $Text);
// $Text = preg_replace("(\[hl\](.*?)\[\/hl\])ism", "<span style=\"background-color: yellow;\">$1</span>", $Text);
$Text = preg_replace("(\[hl=(.*?)\](.*?)\[\/hl\])ism", "<span style=\"background-color: $1;\">$2</span>", $Text);
}