Skip to content

Commit cfbcb9d

Browse files
committed
minor #10700 [DomCrawler][WIP] Add note about the HTML5 parser library (tgalopin)
This PR was merged into the master branch. Discussion ---------- [DomCrawler][WIP] Add note about the HTML5 parser library Documentation for the PR symfony/symfony#29306. Commits ------- 6e2f04a [DomCrawler] Add note about the HTML5 parser library
2 parents 3e06be9 + 6e2f04a commit cfbcb9d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/dom_crawler.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ tree.
7272
isn't meant to dump content, you can see the "fixed" version of your HTML
7373
by :ref:`dumping it <component-dom-crawler-dumping>`.
7474

75+
.. note::
76+
77+
When available, the DomCrawler will use the
78+
[html5-php library](https://github.com/Masterminds/html5-php) to parse HTML content.
79+
If you need to support specific HTML5 tags ou if you are getting unexpected behaviors
80+
using the DomCrawler, you can install the library to fix the problem.
81+
7582
Node Filtering
7683
~~~~~~~~~~~~~~
7784

0 commit comments

Comments
 (0)