aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/bbcode.php3
-rw-r--r--include/html2bbcode.php2
2 files changed, 4 insertions, 1 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 65bda1b7b..c152d45cb 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -1402,6 +1402,9 @@ function bbcode($text, $options = []) {
if (strpos($text,'[b]') !== false) {
$text = preg_replace("(\[b\](.*?)\[\/b\])ism", '<strong>$1</strong>', $text);
}
+ if (strpos($text,'[strong]') !== false) {
+ $text = preg_replace("(\[strong\](.*?)\[\/strong\])ism", '<strong>$1</strong>', $text);
+ }
// Check for Italics text
if (strpos($text,'[i]') !== false) {
$text = preg_replace("(\[i\](.*?)\[\/i\])ism", '<em>$1</em>', $text);
diff --git a/include/html2bbcode.php b/include/html2bbcode.php
index b799a0c28..ba298aa58 100644
--- a/include/html2bbcode.php
+++ b/include/html2bbcode.php
@@ -176,7 +176,7 @@ function html2bbcode($message)
//node2bbcode($doc, 'span', array('style'=>'/.*font-size:\s*(\d+)[,;].*/'), '[size=$1]', '[/size]');
//node2bbcode($doc, 'span', array('style'=>'/.*font-size:\s*(.+?)[,;].*/'), '[size=$1]', '[/size]');
- node2bbcode($doc, 'span', array('style'=>'/.*color:\s*(.+?)[,;].*/'), '[color="$1"]', '[/color]');
+ node2bbcode($doc, 'span', array('style'=>'/.*color:\s*(.+?)[,;].*/'), '[color=$1]', '[/color]');
//node2bbcode($doc, 'span', array('style'=>'/.*font-family:\s*(.+?)[,;].*/'), '[font=$1]', '[/font]');
//node2bbcode($doc, 'div', array('style'=>'/.*font-family:\s*(.+?)[,;].*font-size:\s*(\d+?)pt.*/'), '[font=$1][size=$2]', '[/size][/font]');