diff --git a/src/Embed/Platforms/Youtube.php b/src/Embed/Platforms/Youtube.php index e549a77..7601558 100644 --- a/src/Embed/Platforms/Youtube.php +++ b/src/Embed/Platforms/Youtube.php @@ -78,7 +78,7 @@ public function getEmbedHtml($matches): string if ($isShort) { // set max width same as the youtube player - $html = '
' . $html . '
'; + $html = '
' . $html . '
'; } return $html; diff --git a/tests/Unit/Embed/Platforms/YoutubeTest.php b/tests/Unit/Embed/Platforms/YoutubeTest.php index 3af39de..a5411a9 100644 --- a/tests/Unit/Embed/Platforms/YoutubeTest.php +++ b/tests/Unit/Embed/Platforms/YoutubeTest.php @@ -53,7 +53,7 @@ $response = $parser->parse($match); expect($response)->toBe( - '
' + '
' ); });