Skip to content

Commit 419b024

Browse files
committed
Minor tweak
1 parent cd40f79 commit 419b024

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

components/dom_crawler.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -654,16 +654,15 @@ another given base URI::
654654
Using a HTML5 Parser
655655
~~~~~~~~~~~~~~~~~~~~
656656

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``::
660659

661660
use Symfony\Component\DomCrawler\Crawler;
662661

663662
$crawler = new Crawler(null, $uri, useHtml5Parser: true);
664663

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.
667666

668667
.. versionadded:: 6.3
669668

0 commit comments

Comments
 (0)