From 5c726493aeb60b6cfb073d8a4b4df47bcf8d79c5 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 11 Mar 2020 09:01:50 -0400 Subject: [PATCH] Remove extraneous HTML decode in Markdown::toBBCode --- src/Content/Text/Markdown.php | 2 -- 1 file changed, 2 deletions(-) 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);