Skip to content

Commit 42de12b

Browse files
minor #44180 [DomCrawler] Fix HTML5 parser charset option (tgalopin)
This PR was merged into the 4.4 branch. Discussion ---------- [DomCrawler] Fix HTML5 parser charset option | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Wrong usage of masterminds/html5 options Commits ------- 53b3e40ab5 [DomCrawler] Fix HTML5 parser charset option
2 parents a6eb653 + afbc304 commit 42de12b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Crawler.php

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

11871187
private function parseHtml5(string $htmlContent, string $charset = 'UTF-8'): \DOMDocument
11881188
{
1189-
return $this->html5Parser->parse($this->convertToHtmlEntities($htmlContent, $charset), [], $charset);
1189+
return $this->html5Parser->parse($this->convertToHtmlEntities($htmlContent, $charset));
11901190
}
11911191

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

0 commit comments

Comments
 (0)