Skip to content

Commit

Permalink
Removed line breaks when removing html tag
Browse files Browse the repository at this point in the history
  • Loading branch information
simba77 committed Dec 17, 2023
1 parent 2602fee commit 0033e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Providers/Youtube.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(["<html><body>\n", "\n</body></html>"], '', $document->html());
return str_replace(["<html><body>", "</body></html>"], '', $document->html());
}

protected function getStyles(): string
Expand Down

0 comments on commit 0033e2a

Please sign in to comment.