From: Abinoam P. Marques Jr Date: Sun, 12 Feb 2012 14:21:01 +0000 (-0800) Subject: Added support for [ul] standard unordered list bbcode. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5479142efca1fff08f2d60dc5a723b5d0842548b;p=friendica.git Added support for [ul] standard unordered list bbcode. --- diff --git a/include/bbcode.php b/include/bbcode.php index 7825914b55..5d9665be56 100755 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -115,13 +115,15 @@ function bbcode($Text,$preserve_nl = false) { // Check for list text - if(stristr($Text,'[/list]')) + if(stristr($Text,'[/(list|ul|ol)]')) $Text = str_replace("[*]", "
  • ", $Text); if(stristr($Text,'[/list]')) $Text = str_replace("[*]", "
  • ", $Text); $Text = preg_replace("/\[list\](.*?)\[\/list\]/ism", '' ,$Text); + $Text = preg_replace("/\[ul\](.*?)\[\/ul\]/ism", '' +,$Text); $Text = preg_replace("/\[list=\](.*?)\[\/list\]/ism", '' ,$Text); $Text = preg_replace("/\[list=1\](.*?)\[\/list\]/ism", '' ,$Text); $Text = preg_replace("/\[list=((?-i)i)\](.*?)\[\/list\]/ism",'