more fixes for issue #1843

This commit is contained in:
Mario
2024-05-08 14:34:44 +00:00
parent 7a5bb99d87
commit 76ce4705e2
3 changed files with 8 additions and 14 deletions

View File

@@ -1745,10 +1745,8 @@ function bbcode($text, $options = []) {
// oembed tag
if (strpos($text,'[/embed]') !== false) {
$text = str_replace(["[/embed]\r", "[/embed]\n"], '[/embed]', $text);
$text = oembed_bbcode2html($text);
// Avoid triple linefeeds through oembed
$text = str_replace("<br style='clear:left'></span><br /><br />", "<br style='clear:left'></span>", $text);
}
// If we found an event earlier, strip out all the event code and replace with a reformatted version.