diff --git a/src/Providers/Youtube.php b/src/Providers/Youtube.php index 8ade8ab..61eff28 100644 --- a/src/Providers/Youtube.php +++ b/src/Providers/Youtube.php @@ -62,7 +62,7 @@ public function parse(string $content): string } // We replace it because the standard LIBXML_HTML_NOIMPLIED flag leads to unexpected behavior when working with nodes. - return str_replace(["\n", "\n"], '', $document->html()); + return str_replace(["", ""], '', $document->html()); } protected function getStyles(): string