]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Text/HTML.php
Worker-details: Using json_decode instead of reinventing hot water (#5441)
[friendica.git] / src / Content / Text / HTML.php
index f82a254d3d66cbf6736c1c1fb8ac1843d7f2ca07..d6e699ed7b90e0b894419a823c911cdd08de8bcf 100644 (file)
@@ -221,6 +221,9 @@ class HTML
                self::tagToBBCode($doc, 'b', [], '[b]', '[/b]');
                self::tagToBBCode($doc, 'i', [], '[i]', '[/i]');
                self::tagToBBCode($doc, 'u', [], '[u]', '[/u]');
+               self::tagToBBCode($doc, 's', [], '[s]', '[/s]');
+               self::tagToBBCode($doc, 'del', [], '[s]', '[/s]');
+               self::tagToBBCode($doc, 'strike', [], '[s]', '[/s]');
 
                self::tagToBBCode($doc, 'big', [], "[size=large]", "[/size]");
                self::tagToBBCode($doc, 'small', [], "[size=small]", "[/size]");
@@ -546,8 +549,6 @@ class HTML
 
        public static function toPlaintext($html, $wraplength = 75, $compact = false)
        {
-               global $lang;
-
                $message = str_replace("\r", "", $html);
 
                $doc = new DOMDocument();