]> git.mxchange.org Git - friendica.git/blobdiff - include/bbcode.php
missed some images, table border property
[friendica.git] / include / bbcode.php
index 3656f23a9d3852646fad7dbf02cab0969d92d07e..7fc1eac1c449c6aa04d4ed7d8b6a090009ec6731 100644 (file)
@@ -78,6 +78,10 @@ function bbcode($Text,$preserve_nl = false) {
        $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 = preg_replace("/\[table border=1\](.*?)\[\/table\]/s", '<table border="1" >$1</table>' ,$Text);
+       $Text = preg_replace("/\[table border=0\](.*?)\[\/table\]/s", '<table border="0" >$1</table>' ,$Text);
+
        
 //     $Text = str_replace("[*]", "<li>", $Text);