diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 1229337294..831d6cf34c 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -1637,7 +1637,10 @@ class BBCode // Try to Oembed if ($try_oembed) { - $text = preg_replace("/\[video\](.*?\.(ogg|ogv|oga|ogm|webm|mp4).*?)\[\/video\]/ism", '', $text); + $text = preg_replace("/\[video\](.*?\.(ogg|ogv|oga|ogm|webm|mp4).*?)\[\/video\]/ism", + '', $text); + $text = preg_replace("/\[video\](.*?)\[\/video\]/ism", + '$1', $text); $text = preg_replace("/\[audio\](.*?)\[\/audio\]/ism", '', $text); $text = preg_replace_callback("/\[video\](.*?)\[\/video\]/ism", $try_oembed_callback, $text);