Skip to content

Commit

Permalink
[misc] Fix XML-encoding of strings with XML chars
Browse files Browse the repository at this point in the history
xmlNewDocRawNode() takes unescaped strings, so it can handle a string with
like "Sweet & Low"

Closes #1798
  • Loading branch information
ejurgensen committed Aug 23, 2024
1 parent ab63f8f commit ecab326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/misc_xml.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ecab326

Please sign in to comment.