This pull request addresses issue #2599 by escaping the HTML entities by number, rather than the shorthand identifiers that strict XML parsers don't understand.
Converted the list to the source code format by replacing
^"(.+)?","U\+([0-9a-fA-F]{5})"$
with
escapesec[$2] = "&#x$2;"; // $1
2596 also fixes the aforementioned issue, which I admittedly didn't notice until submitting this PR. I believe they are sufficiently different approaches to the problem though.
This approach pollutes utils.cpp considerably, it may be better to split this off into a separate file.
This pull request addresses issue #2599 by escaping the HTML entities by number, rather than the shorthand identifiers that strict XML parsers don't understand.
To obtain the list, I:
with
with
2596 also fixes the aforementioned issue, which I admittedly didn't notice until submitting this PR. I believe they are sufficiently different approaches to the problem though.
This approach pollutes
utils.cpp
considerably, it may be better to split this off into a separate file.Thanks!