diff --git a/src/coders/xml.cpp b/src/coders/xml.cpp index 6a8777c5..ba2f36a9 100644 --- a/src/coders/xml.cpp +++ b/src/coders/xml.cpp @@ -250,7 +250,8 @@ std::string Parser::parseText() { } nextChar(); } - return std::string(source.substr(start, pos - start)); + return Parser("", std::string(source.substr(start, pos - start))) + .parseString('\0', false); } inline bool is_xml_identifier_start(char c) {