add bbcode support for the HTML5 del tag

This commit is contained in:
Mario
2024-05-07 08:52:05 +00:00
parent 605aa37ad3
commit f74922db39
2 changed files with 5 additions and 1 deletions

View File

@@ -1408,7 +1408,7 @@ function bbcode($text, $options = []) {
}
// Check for strike-through text
if (strpos($text,'[s]') !== false) {
$text = preg_replace("(\[s\](.*?)\[\/s\])ism", '<span style="text-decoration: line-through;">$1</span>', $text);
$text = preg_replace("(\[s\](.*?)\[\/s\])ism", '<del>$1</del>', $text);
}
// Check for over-line text
if (strpos($text,'[o]') !== false) {