Skip to content

Commit

Permalink
Use xmlDecode for news
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingJellyfish committed Apr 28, 2024
1 parent 18094c5 commit 9206b92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/addons/news_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9206b92

Please sign in to comment.