From afbc30421ae3b66a3ea9ca728368c05964cd4d81 Mon Sep 17 00:00:00 2001 From: Titouan Galopin Date: Sun, 21 Nov 2021 14:26:08 +0100 Subject: [PATCH] [DomCrawler] Fix HTML5 parser charset option --- Crawler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Crawler.php b/Crawler.php index 70a4b607..d1c7a969 100644 --- a/Crawler.php +++ b/Crawler.php @@ -1107,7 +1107,7 @@ protected function sibling($node, $siblingDir = 'nextSibling') private function parseHtml5(string $htmlContent, string $charset = 'UTF-8'): \DOMDocument { - return $this->html5Parser->parse($this->convertToHtmlEntities($htmlContent, $charset), [], $charset); + return $this->html5Parser->parse($this->convertToHtmlEntities($htmlContent, $charset)); } private function parseXhtml(string $htmlContent, string $charset = 'UTF-8'): \DOMDocument