diff options
author | friendica <info@friendica.com> | 2014-08-05 04:32:48 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-08-05 04:32:48 -0700 |
commit | 8b1f9b14254794e4e247ba008a70e053d017bb5f (patch) | |
tree | 64053ea2257872471612bf3fcca985215f36c715 /include | |
parent | 004eaacc73a2ca2bf58a1cce7ef5c1a99dc2b876 (diff) | |
download | volse-hubzilla-8b1f9b14254794e4e247ba008a70e053d017bb5f.tar.gz volse-hubzilla-8b1f9b14254794e4e247ba008a70e053d017bb5f.tar.bz2 volse-hubzilla-8b1f9b14254794e4e247ba008a70e053d017bb5f.zip |
bbcode sup and sub
Diffstat (limited to 'include')
-rw-r--r-- | include/bbcode.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index 195700729..a7055fc45 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -502,6 +502,13 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) { if (strpos($Text,'[o]') !== false) { $Text = preg_replace("(\[o\](.*?)\[\/o\])ism",'<span class="overline">$1</span>',$Text); } + if (strpos($Text,'[sup]') !== false) { + $Text = preg_replace("(\[sup\](.*?)\[\/sup\])ism",'<sup>$1</sup>',$Text); + } + if (strpos($Text,'[sub]') !== false) { + $Text = preg_replace("(\[sub\](.*?)\[\/sub\])ism",'<sub>$1</sub>',$Text); + } + // Check for colored text if (strpos($Text,'[/color]') !== false) { $Text = preg_replace("(\[color=(.*?)\](.*?)\[\/color\])ism","<span style=\"color: $1;\">$2</span>",$Text); |