From 53c54dc91d132c221ff5fea2f7e9fb4568db9a0f Mon Sep 17 00:00:00 2001 From: MihailRis Date: Tue, 19 Nov 2024 07:41:26 +0300 Subject: [PATCH] fix xml text escapes handling --- src/coders/xml.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {