Use xmlDecode for news

This commit is contained in:
CodingJellyfish 2024-04-28 15:57:42 +08:00
parent 18094c505a
commit 9206b923f7

View File

@ -302,8 +302,9 @@ void NewsManager::updateNews(const XMLNode *xml, const std::string &filename)
{ {
const XMLNode *node = xml->getNode(i); const XMLNode *node = xml->getNode(i);
if(node->getName()!="message") continue; if(node->getName()!="message") continue;
core::stringw news; std::string raw_news;
node->get("content", &news); node->get("content", &raw_news);
core::stringw news = StringUtils::xmlDecode(raw_news);
int id=-1; int id=-1;
node->get("id", &id); node->get("id", &id);
bool important=false; bool important=false;