[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:
ejurgensen 2024-08-23 21:12:25 +02:00
parent ab63f8f834
commit ecab3266ce
1 changed files with 1 additions and 1 deletions

View File

@ -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;