Use xmlDecode for news
This commit is contained in:
parent
18094c505a
commit
9206b923f7
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user