Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Block API: Parse entity only when valid character reference #13512
This pull request seeks to resolve an issue where certain HTML strings may result in a block being incorrectly marked as invalid.
The root issue is that in the HTML tokenization which occurs during block validation, the entity decoder wrongly evaluates invalid character references.
For example, given the markup:
Previously, the entity decoder would wrongly produce a value for every segment of text between
Repeat steps to reproduce from #12448 (comment), verifying that no block invalidation occurs.
Ensure unit tests pass: