From: Hypolite Petovan
Date: Wed, 11 Mar 2020 13:01:50 +0000 (-0400)
Subject: Remove extraneous HTML decode in Markdown::toBBCode
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5c726493aeb60b6cfb073d8a4b4df47bcf8d79c5;p=friendica.git
Remove extraneous HTML decode in Markdown::toBBCode
---
diff --git a/src/Content/Text/Markdown.php b/src/Content/Text/Markdown.php
index 8dfe00190a..f5ad85e805 100644
--- a/src/Content/Text/Markdown.php
+++ b/src/Content/Text/Markdown.php
@@ -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(['
', '', '
'], ['
', '
', '
'], $s);