[DomCrawler] Failing test for Crawler emojis handling regression #46212
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
since 4.4.39, 5.4.6 and 6.0.6.
This is the minimal reproducer for an issue we encountered on our blog while upgrading to 5.4.6 (this probably goes beyond emojis issues).
Our contents are parsed from markdown files, converted to HTML, then read using the Crawler to performs some checks and modifications. But since the upgrades, emojis included in the original content were wrongly encoded:
These changes are the culprit: https://github.com/symfony/symfony/pull/45532/files#diff-940b51ffa31dedac17aa49cd8e04e44aa8b3747782c7f9f27457b0510587c05d
However, I'm unsure this is an actual regression, or somehow a misuse of the Crawler, since adding:
in the test case would fix it?