diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2012-02-12 06:21:01 -0800 |
---|---|---|
committer | Abinoam P. Marques Jr <abinoam@gmail.com> | 2012-02-12 11:59:51 -0800 |
commit | 5479142efca1fff08f2d60dc5a723b5d0842548b (patch) | |
tree | a3f0176e5c635c036b405415ea9811c601825fcf | |
parent | 5107ee52d3e9c743e977b2e651c8846dfa4ada38 (diff) | |
download | volse-hubzilla-5479142efca1fff08f2d60dc5a723b5d0842548b.tar.gz volse-hubzilla-5479142efca1fff08f2d60dc5a723b5d0842548b.tar.bz2 volse-hubzilla-5479142efca1fff08f2d60dc5a723b5d0842548b.zip |
Added support for [ul] standard unordered list bbcode.
-rwxr-xr-x | include/bbcode.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index 7825914b5..5d9665be5 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("[*]", "<li>", $Text); if(stristr($Text,'[/list]')) $Text = str_replace("[*]", "<li>", $Text); $Text = preg_replace("/\[list\](.*?)\[\/list\]/ism", '<ul class="listbullet" style="list-style-type: circle;">$1</ul>' ,$Text); + $Text = preg_replace("/\[ul\](.*?)\[\/ul\]/ism", '<ul class="listbullet" style="list-style-type: circle;">$1</ul>' +,$Text); $Text = preg_replace("/\[list=\](.*?)\[\/list\]/ism", '<ul class="listnone" style="list-style-type: none;">$1</ul>' ,$Text); $Text = preg_replace("/\[list=1\](.*?)\[\/list\]/ism", '<ul class="listdecimal" style="list-style-type: decimal;">$1</ul>' ,$Text); $Text = preg_replace("/\[list=((?-i)i)\](.*?)\[\/list\]/ism",'<ul class="listlowerroman" style="list-style-type: |