81abfb9f2e9d4f645b48eba43730980cce47f706
When a numeric character reference (&#...;) fails to parse, the catch block restored the text as "&#" + e where e already begins with '#', producing a doubled '#' (for example "&#foo;" became "&##foo;"). Restore the original text as "&" + e + ";" to match the named-entity fallback and keep DeEntitize idempotent for unparseable numeric entities.
Description
My contributions to zzzprojects/html-agility-pack: 2 commits, 1 merged PRs
60 KiB
0 Stars
1 Watchers
0 Forks
Languages
C#
100%