From 9206b923f706e91c79208038fd678653f8235233 Mon Sep 17 00:00:00 2001 From: CodingJellyfish Date: Sun, 28 Apr 2024 15:57:42 +0800 Subject: [PATCH] Use xmlDecode for news --- src/addons/news_manager.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/addons/news_manager.cpp b/src/addons/news_manager.cpp index 7fb2220ef..fda8a3d6a 100644 --- a/src/addons/news_manager.cpp +++ b/src/addons/news_manager.cpp @@ -302,8 +302,9 @@ void NewsManager::updateNews(const XMLNode *xml, const std::string &filename) { const XMLNode *node = xml->getNode(i); if(node->getName()!="message") continue; - core::stringw news; - node->get("content", &news); + std::string raw_news; + node->get("content", &raw_news); + core::stringw news = StringUtils::xmlDecode(raw_news); int id=-1; node->get("id", &id); bool important=false;