From: Abinoam P. Marques Jr Date: Sun, 12 Feb 2012 22:59:07 +0000 (-0800) Subject: BBCode [size=50] --> font-size: 50px (with the unit px). X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=74b529bda2fb024815299db094ac8313a9d9d809;p=friendica.git BBCode [size=50] --> font-size: 50px (with the unit px). This [size=number] without unit is kind of a standard. It was being rendered like "font-size: 50" and that's not valid CSS style. --- diff --git a/include/bbcode.php b/include/bbcode.php index 3534a7315f..fa5b7e0806 100755 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -138,6 +138,8 @@ function bbcode($Text,$preserve_nl = false) { $Text = preg_replace("(\[color=(.*?)\](.*?)\[\/color\])ism","$2",$Text); // Check for sized text + // [size=50] --> font-size: 50px (with the unit). + $Text = preg_replace("(\[size=(\d*?)\](.*?)\[\/size\])ism","$2",$Text); $Text = preg_replace("(\[size=(.*?)\](.*?)\[\/size\])ism","$2",$Text); // Check for list text