From 0033e2a36903fc3a2ddb8b7fb69b822fb6a8390e Mon Sep 17 00:00:00 2001 From: simba77 Date: Sun, 17 Dec 2023 13:53:37 +0300 Subject: [PATCH] Removed line breaks when removing html tag --- src/Providers/Youtube.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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