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
This commit is contained in:
commit
82a456499d
|
@ -1186,7 +1186,7 @@ class Crawler implements \Countable, \IteratorAggregate
|
|||
|
||||
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
|
||||
|
|
Reference in New Issue