From: Abinoam P. Marques Jr Date: Sun, 12 Feb 2012 23:51:17 +0000 (-0800) Subject: Added [center] bbcode support. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3a07973ffae4e0f9c576d343eafee30401d92449;p=friendica.git Added [center] bbcode support. --- diff --git a/include/bbcode.php b/include/bbcode.php index fa5b7e0806..20418f9407 100755 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -142,6 +142,9 @@ function bbcode($Text,$preserve_nl = false) { $Text = preg_replace("(\[size=(\d*?)\](.*?)\[\/size\])ism","$2",$Text); $Text = preg_replace("(\[size=(.*?)\](.*?)\[\/size\])ism","$2",$Text); + // Check for centered text + $Text = preg_replace("(\[center\](.*?)\[\/center\])ism","
$1
",$Text); + // Check for list text if(stristr($Text,'[/(list|ul|ol)]'))