File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -654,16 +654,15 @@ another given base URI::
654
654
Using a HTML5 Parser
655
655
~~~~~~~~~~~~~~~~~~~~
656
656
657
- You can specify to the :class: `Symfony\\ Component\\ DomCrawler\\ Crawler ` to use
658
- an HTML5 parser when instantiating it by setting the ``useHtml5Parser `` constructor
659
- argument to ``true ``::
657
+ If you need the :class: `Symfony\\ Component\\ DomCrawler\\ Crawler ` to use an HTML5
658
+ parser, set its ``useHtml5Parser `` constructor argument to ``true ``::
660
659
661
660
use Symfony\Component\DomCrawler\Crawler;
662
661
663
662
$crawler = new Crawler(null, $uri, useHtml5Parser: true);
664
663
665
- By doing do, the crawler will use the parser from the `masterminds/html5 `_ library internally to parse
666
- documents.
664
+ By doing do, the crawler will use the HTML5 parser provided by the `masterminds/html5 `_
665
+ library to parse the documents.
667
666
668
667
.. versionadded :: 6.3
669
668
You can’t perform that action at this time.
0 commit comments