]> git.mxchange.org Git - friendica.git/commitdiff
Remove extraneous HTML decode in Markdown::toBBCode
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 11 Mar 2020 13:01:50 +0000 (09:01 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 11 Mar 2020 13:01:50 +0000 (09:01 -0400)
src/Content/Text/Markdown.php

index 8dfe00190a85ed2c6e4f1f4b7177910a420f1bda..f5ad85e805453fcdef4b280826d7c73d0205ba75 100644 (file)
@@ -109,8 +109,6 @@ class Markdown
         */
        public static function toBBCode($s)
        {
-               $s = html_entity_decode($s, ENT_COMPAT, 'UTF-8');
-
                // The parser cannot handle paragraphs correctly
                $s = str_replace(['</p>', '<p>', '<p dir="ltr">'], ['<br>', '<br>', '<br>'], $s);