]> git.mxchange.org Git - friendica.git/commitdiff
Added [th] bbcode tag support.
authorAbinoam P. Marques Jr <abinoam@gmail.com>
Mon, 13 Feb 2012 01:27:08 +0000 (17:27 -0800)
committerAbinoam P. Marques Jr <abinoam@gmail.com>
Mon, 13 Feb 2012 01:27:08 +0000 (17:27 -0800)
include/bbcode.php

index 1d11f687decf2541e1bed1c4c82a17705b234ec8..9c70cb494aa825d140ecb08caf72ea821ebf10de 100755 (executable)
@@ -165,6 +165,7 @@ lower-alpha;">$2</ul>' ,$Text);
        $Text = preg_replace("/\[list=((?-i)A)\](.*?)\[\/list\]/ism", '<ul class="listupperalpha" style="list-style-type: 
 upper-alpha;">$2</ul>' ,$Text);
 
+       $Text = preg_replace("/\[th\](.*?)\[\/th\]/sm", '<th>$1</th>' ,$Text);
        $Text = preg_replace("/\[td\](.*?)\[\/td\]/sm", '<td>$1</td>' ,$Text);
        $Text = preg_replace("/\[tr\](.*?)\[\/tr\]/sm", '<tr>$1</tr>' ,$Text);
        $Text = preg_replace("/\[table\](.*?)\[\/table\]/sm", '<table>$1</table>' ,$Text);