Fixed XML escaping issue

This commit is contained in:
dexy 2020-03-06 23:01:50 +11:00
parent 50a5abb2d8
commit bae11fd2ce

View File

@ -2090,10 +2090,10 @@ namespace CodeWalker.GameFiles
XmlDocument doc = new XmlDocument();
XmlNode node = doc.CreateElement("root");
node.InnerText = unescaped;
var escaped = node.InnerXml;
var escaped = node.InnerXml.Replace("\"", """);
if (escaped != unescaped)
{ }
return node.InnerXml;
return escaped;
}