diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-04 17:01:47 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-04 17:01:47 -0700 |
commit | 799d82fd6a47196bc69d1e9f23fc61ea2d331208 (patch) | |
tree | eefb2608ae12d281e85e89cdf2d31b148d2dd753 | |
parent | 4ba022438e29dd305435a18e94a0bc08b5dd76a4 (diff) |
Revert "Change the bbcode transformation to more standard tags that can be"
This reverts commit 4ba022438e29dd305435a18e94a0bc08b5dd76a4.
-rw-r--r-- | modules/g2_import/helpers/g2_import.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/g2_import/helpers/g2_import.php b/modules/g2_import/helpers/g2_import.php index 79f3b197..91fcbe8e 100644 --- a/modules/g2_import/helpers/g2_import.php +++ b/modules/g2_import/helpers/g2_import.php @@ -756,17 +756,16 @@ class g2_import_Core { } static $bbcode_mappings = array( - "#\\[b\\](.*?)\\[/b\\]#" => "<b>$1</b>", - "#\\[i\\](.*?)\\[/i\\]#" => "<i>$1</i>", - "#\\[u\\](.*?)\\[/u\\]#" => "<u>$1</u>", - "#\\[s\\](.*?)\\[/s\\]#" => "<strike>$1</strike>", + "#\\[b\\](.*?)\\[/b\\]#" => "<span style=\"font-weight: bold;\">$1</span>", + "#\\[i\\](.*?)\\[/i\\]#" => "<span style=\"font-style: italic;\">$1</span>", + "#\\[u\\](.*?)\\[/u\\]#" => "<span style=\"text-decoration: underline: bold;\">$1</span>", + "#\\[s\\](.*?)\\[/s\\]#" => "<span style=\"font-decoration: line-through;\">$1</span>", "#\\[url\\](.*?)\[/url\\]#" => "<a href=\"$1\">$1</a>", "#\\[url=(.*?)\\](.*?)\[/url\\]#" => "<a href=\"$1\">$2</a>", "#\\[img\\](.*?)\\[/img\\]#" => "<img src=\"$1\"/>", "#\\[quote\\](.*?)\\[/quote\\]#" => "<blockquote><p>$1</p></blockquote>", "#\\[code\\](.*?)\\[/code\\]#" => "<pre>$1</pre>", - "#\\[size=([^\\[]*)\\]([^\\[]*)\\[/size\\]#" => "<font size=\"$1\">$2</font>", - "#\\[color=([^\\[]*)\\]([^\\[]*)\\[/color\\]#" => "<font color=\"$1\">$2</font>", + "#\\[color=([^\\[]*)\\]([^\\[]*)\\[/color\\]#" => "<span style=\"font-color: $1;\">$2/span>", "#\\[ul\\](.*?)\\/ul\\]#" => "<ul>$1</ul>", "#\\[li\\](.*?)\\[/li\\]#" => "<li>$1</li>", ); |