diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 33f91b43d1..c9bbc02c93 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -1460,6 +1460,7 @@ class BBCode // @deprecated since 2021.12, left for backward-compatibility reasons $text = preg_replace("(\[class=(.*?)\](.*?)\[\/class\])ism", '$2', $text); // Add HTML new lines + $text = str_replace("\n\n", '

', $text); $text = str_replace("\n", '
', $text); // handle nested lists @@ -1938,7 +1939,7 @@ class BBCode : [] ); - $text = HTML::purify($text, $allowedIframeDomains); + $text = HTML::purify('

' . $text . '

', $allowedIframeDomains); DI::profiler()->stopRecording(); return trim($text);