From 043bde42a6a8dc312bbe66921a5339e09e9bef2f Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 21 Jun 2011 16:29:43 -0700 Subject: fix banding on logo, xhtml compliant list and basic table support --- include/bbcode.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include/bbcode.php') diff --git a/include/bbcode.php b/include/bbcode.php index 40f4935fb..3656f23a9 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -73,7 +73,13 @@ function bbcode($Text,$preserve_nl = false) { $Text = preg_replace("/\[list=I\](.*?)\[\/list\]/s", '' ,$Text); $Text = preg_replace("/\[list=a\](.*?)\[\/list\]/s", '' ,$Text); $Text = preg_replace("/\[list=A\](.*?)\[\/list\]/s", '' ,$Text); - $Text = str_replace("[*]", "
  • ", $Text); + $Text = preg_replace("/\[li\](.*?)\[\/li\]/s", '
  • $1
  • ' ,$Text); + + $Text = preg_replace("/\[td\](.*?)\[\/td\]/s", '$1' ,$Text); + $Text = preg_replace("/\[tr\](.*?)\[\/tr\]/s", '$1' ,$Text); + $Text = preg_replace("/\[table\](.*?)\[\/table\]/s", '$1
    ' ,$Text); + +// $Text = str_replace("[*]", "
  • ", $Text); // Check for font change text $Text = preg_replace("(\[font=(.*?)\](.*?)\[\/font\])","$2",$Text); -- cgit v1.2.3