diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2012-02-12 17:27:08 -0800 |
---|---|---|
committer | Abinoam P. Marques Jr <abinoam@gmail.com> | 2012-02-12 17:27:08 -0800 |
commit | 135005571f4cfe3170b2f2ce0ea94b39a75c111a (patch) | |
tree | 0addb842b7a9614e750adf47c7efaed0e2eca077 /include/bbcode.php | |
parent | e575a3a02c324d65e6849ffd3f8cf68e7318f748 (diff) | |
download | volse-hubzilla-135005571f4cfe3170b2f2ce0ea94b39a75c111a.tar.gz volse-hubzilla-135005571f4cfe3170b2f2ce0ea94b39a75c111a.tar.bz2 volse-hubzilla-135005571f4cfe3170b2f2ce0ea94b39a75c111a.zip |
Added [th] bbcode tag support.
Diffstat (limited to 'include/bbcode.php')
-rwxr-xr-x | include/bbcode.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index 1d11f687d..9c70cb494 100755 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -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); |