diff options
author | friendica <info@friendica.com> | 2012-08-05 21:41:58 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-08-05 21:41:58 -0700 |
commit | c673c70c25143f18b2ef6aef9ee6633d0eac46ae (patch) | |
tree | a5e242bc114a08cd7a46868e56f5159075f3e7fe /include/bbcode.php | |
parent | 4f645992100a9c2a9877548b37cf4f78b4c6a160 (diff) | |
download | volse-hubzilla-c673c70c25143f18b2ef6aef9ee6633d0eac46ae.tar.gz volse-hubzilla-c673c70c25143f18b2ef6aef9ee6633d0eac46ae.tar.bz2 volse-hubzilla-c673c70c25143f18b2ef6aef9ee6633d0eac46ae.zip |
updates
Diffstat (limited to 'include/bbcode.php')
-rw-r--r-- | include/bbcode.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index de848de99..2a4b4592b 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -224,6 +224,12 @@ function bbcode($Text,$preserve_nl = false, $tryoembed = true) { // Check for list text $Text = str_replace("[*]", "<li>", $Text); + // Check for style sheet commands + $Text = preg_replace("(\[style=(.*?)\](.*?)\[\/style\])ism","<span style=\"$1;\">$2</span>",$Text); + + // Check for CSS classes + $Text = preg_replace("(\[class=(.*?)\](.*?)\[\/class\])ism","<span class=\"$1\">$2</span>",$Text); + // handle nested lists $endlessloop = 0; |