8000 [DomCrawler] Fix HTML5 parser charset option · symfony/symfony@53b3e40 · GitHub
[go: up one dir, main page]

Skip to content

Commit 53b3e40

Browse files
tgalopinnicolas-grekas
authored andcommitted
[DomCrawler] Fix HTML5 parser charset option
1 parent 926ded8 commit 53b3e40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DomCrawler/Crawler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ protected function sibling($node, $siblingDir = 'nextSibling')
11071107

11081108
private function parseHtml5(string $htmlContent, string $charset = 'UTF-8'): \DOMDocument
11091109
{
1110-
return $this->html5Parser->parse($this->convertToHtmlEntities($htmlContent, $charset), [], $charset);
1110+
return $this->html5Parser->parse($this->convertToHtmlEntities($htmlContent, $charset));
11111111
}
11121112

11131113
private function parseXhtml(string $htmlContent, string $charset = 'UTF-8'): \DOMDocument

0 commit comments

Comments
 (0)
0