Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: decode html entities correctly (#8047)
fixes #8026 1. replace the big entities list with entities that have a ; at the end where valid (there are some exceptions) 2. construct two regexes from that entities list: one for HTML where it's strictly matched, one for attributes where it tries to match browser behavior by also allowing = / digit / character afterwards 3. decode character references with one of these regexes depending on this is an attribute value or not --------- Co-authored-by: Yuichiro Yamashita <[email protected]>
- Loading branch information