Skip to content

Commit 44175bc

Browse files
committed
minor #5433 Warn users of older PHP versions Crawler might not decode HTML entities properly (jakzal, javiereguiluz)
This PR was merged into the 2.3 branch. Discussion ---------- Warn users of older PHP versions Crawler might not decode HTML entities properly | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3,<2.7 | Fixed tickets | - Commits ------- 699e637 Reworded the notice as a caution c47ec88 [DomCrawler] Warn users of older PHP versions Crawler might not decode html entities properly.
2 parents c3b43b6 + 699e637 commit 44175bc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/dom_crawler.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,12 @@ and :phpclass:`DOMNode` objects:
234234

235235
The ``html`` method is new in Symfony 2.3.
236236

237+
.. caution::
238+
239+
Due to an issue in PHP, the ``html()`` method returns wrongly decoded HTML
240+
entities in PHP versions lower than 5.3.6 (for example, it returns ````
241+
instead of ``&bull;``).
242+
237243
Links
238244
~~~~~
239245

0 commit comments

Comments
 (0)