Add support for numeric XML entities to XMLParser

* Add support for decimal numeric entities to String::xml_unescape
* Add more error checks to String::xml_unescape
* Refactor XMLParser to use String::xml_unescape instead of an internal
implementation
This commit is contained in:
Henry Conklin
2021-02-11 09:33:55 -06:00
parent e5bb89cdd5
commit c6a911f037
6 changed files with 169 additions and 82 deletions

View File

@ -68,8 +68,6 @@ private:
char *data = nullptr;
char *P = nullptr;
uint64_t length = 0;
void unescape(String &p_str);
Vector<String> special_characters;
String node_name;
bool node_empty = false;
NodeType node_type = NODE_NONE;