[misc] Fix XML-encoding of strings with XML chars
xmlNewDocRawNode() takes unescaped strings, so it can handle a string with like "Sweet & Low" Closes #1798
This commit is contained in:
parent
ab63f8f834
commit
ecab3266ce
|
@ -223,7 +223,7 @@ xml_new_node(xml_node *parent, const char *name, const char *val)
|
|||
if (!doc)
|
||||
goto error;
|
||||
|
||||
node = xmlNewDocNode(doc, NULL, BAD_CAST name, BAD_CAST val);
|
||||
node = xmlNewDocRawNode(doc, NULL, BAD_CAST name, BAD_CAST val);
|
||||
if (!node)
|
||||
return NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue