aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-21 16:29:43 -0700
committerFriendika <info@friendika.com>2011-06-21 16:29:43 -0700
commit043bde42a6a8dc312bbe66921a5339e09e9bef2f (patch)
tree2f16b00b19c540909ce6c48b444e16bc2ade779a /include
parentab143a3102560c3a507bf45f9a5c4cd4d6937b91 (diff)
downloadvolse-hubzilla-043bde42a6a8dc312bbe66921a5339e09e9bef2f.tar.gz
volse-hubzilla-043bde42a6a8dc312bbe66921a5339e09e9bef2f.tar.bz2
volse-hubzilla-043bde42a6a8dc312bbe66921a5339e09e9bef2f.zip
fix banding on logo, xhtml compliant list and basic table support
Diffstat (limited to 'include')
-rw-r--r--include/bbcode.php8
1 files changed, 7 insertions, 1 deletions
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", '<ul class="listupperroman">$1</ul>' ,$Text);
$Text = preg_replace("/\[list=a\](.*?)\[\/list\]/s", '<ul class="listloweralpha">$1</ul>' ,$Text);
$Text = preg_replace("/\[list=A\](.*?)\[\/list\]/s", '<ul class="listupperalpha">$1</ul>' ,$Text);
- $Text = str_replace("[*]", "<li>", $Text);
+ $Text = preg_replace("/\[li\](.*?)\[\/li\]/s", '<li>$1</li>' ,$Text);
+
+ $Text = preg_replace("/\[td\](.*?)\[\/td\]/s", '<td>$1</td>' ,$Text);
+ $Text = preg_replace("/\[tr\](.*?)\[\/tr\]/s", '<tr>$1</tr>' ,$Text);
+ $Text = preg_replace("/\[table\](.*?)\[\/table\]/s", '<table>$1</table>' ,$Text);
+
+// $Text = str_replace("[*]", "<li>", $Text);
// Check for font change text
$Text = preg_replace("(\[font=(.*?)\](.*?)\[\/font\])","<span style=\"font-family: $1;\">$2</span>",$Text);