mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-26 08:52:52 +08:00
Fixed XML escaping issue
This commit is contained in:
parent
50a5abb2d8
commit
bae11fd2ce
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user