From 8b1f9b14254794e4e247ba008a70e053d017bb5f Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 5 Aug 2014 04:32:48 -0700 Subject: bbcode sup and sub --- include/bbcode.php | 7 +++++++ version.inc | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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",'$1',$Text); } + if (strpos($Text,'[sup]') !== false) { + $Text = preg_replace("(\[sup\](.*?)\[\/sup\])ism",'$1',$Text); + } + if (strpos($Text,'[sub]') !== false) { + $Text = preg_replace("(\[sub\](.*?)\[\/sub\])ism",'$1',$Text); + } + // Check for colored text if (strpos($Text,'[/color]') !== false) { $Text = preg_replace("(\[color=(.*?)\](.*?)\[\/color\])ism","$2",$Text); diff --git a/version.inc b/version.inc index f736d243e..8843d881e 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2014-08-04.757 +2014-08-05.758 -- cgit v1.2.3