From: Hypolite Petovan Date: Fri, 15 Oct 2021 15:36:40 +0000 (-0400) Subject: Decode HTML entities in code blocks in HTML::toBBCode X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f9165fbaf0cc1d3459c78a40d1f1230754da136b;p=friendica.git Decode HTML entities in code blocks in HTML::toBBCode - Replace PHP_EOL uses with the more common \n --- 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 );