From f9165fbaf0cc1d3459c78a40d1f1230754da136b Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 15 Oct 2021 11:36:40 -0400 Subject: [PATCH] Decode HTML entities in code blocks in HTML::toBBCode - Replace PHP_EOL uses with the more common \n --- src/Content/Text/HTML.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Content/Text/HTML.php b/src/Content/Text/HTML.php index 0e117a2205..e1caca48ae 100644 --- a/src/Content/Text/HTML.php +++ b/src/Content/Text/HTML.php @@ -386,7 +386,7 @@ class HTML $prefix = '[code=' . $matches[1] . ']'; } - return $prefix . PHP_EOL . trim($matches[2]) . PHP_EOL . '[/code]'; + return $prefix . "\n" . html_entity_decode($matches[2]) . "\n" . '[/code]'; }, $message );