aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-04-12 14:46:36 +0200
committerMario Vavti <mario@mariovavti.com>2018-04-12 14:46:36 +0200
commit7c47b9d75ca02ce46175ee3bc0b54e27e8061621 (patch)
treeba7b1a6be60040f31e099e1cd30849b50a3ba1ae /include/bbcode.php
parent09a8b4b379d91dd62f38c116c99187a404d7e774 (diff)
parent549f7a53b11d014993fbb550de97b6cdf45e0843 (diff)
downloadvolse-hubzilla-7c47b9d75ca02ce46175ee3bc0b54e27e8061621.tar.gz
volse-hubzilla-7c47b9d75ca02ce46175ee3bc0b54e27e8061621.tar.bz2
volse-hubzilla-7c47b9d75ca02ce46175ee3bc0b54e27e8061621.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index 152e4888f..340fe6b25 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -1001,11 +1001,11 @@ function bbcode($Text, $options = []) {
}
// Check for strike-through text
if (strpos($Text,'[s]') !== false) {
- $Text = preg_replace("(\[s\](.*?)\[\/s\])ism", '<strike>$1</strike>', $Text);
+ $Text = preg_replace("(\[s\](.*?)\[\/s\])ism", '<span style="text-decoration: line-through;">$1</span>', $Text);
}
// Check for over-line text
if (strpos($Text,'[o]') !== false) {
- $Text = preg_replace("(\[o\](.*?)\[\/o\])ism", '<span class="overline">$1</span>', $Text);
+ $Text = preg_replace("(\[o\](.*?)\[\/o\])ism", '<span style="text-decoration: overline;">$1</span>', $Text);
}
if (strpos($Text,'[sup]') !== false) {
$Text = preg_replace("(\[sup\](.*?)\[\/sup\])ism", '<sup>$1</sup>', $Text);