Skip to content

Commit

Permalink
minor #5433 Warn users of older PHP versions Crawler might not decode…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
xabbuh committed Jun 28, 2015
2 parents c3b43b6 + 699e637 commit 44175bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/dom_crawler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,12 @@ and :phpclass:`DOMNode` objects:

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

.. caution::

Due to an issue in PHP, the ``html()`` method returns wrongly decoded HTML
entities in PHP versions lower than 5.3.6 (for example, it returns ````
instead of ``&bull;``).

Links
~~~~~

Expand Down

0 comments on commit 44175bc

Please sign in to comment.