mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
add bbcode support for the HTML5 del tag
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user