Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #28581 [DomCrawler] return empty string on
Crawler::text()
…
…and `Crawler::html()` instead of an exception (respinoza) This PR was merged into the 4.3-dev branch. Discussion ---------- [DomCrawler] return empty string on `Crawler::text()` and `Crawler::html()` instead of an exception …stead of an exception | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | #28313 | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> This changes the behavior when using text and html methods from the Crawler by returning null instead of throwing an exception. Commits ------- 6a4ce38 [DomCrawler] Added ability to return a default value in `text()` and `html()` instead of throwing an exception when node is empty.
- Loading branch information
Showing
3 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters