public static string XmlEscape(string unescaped){ Xmldocument doc = new Xmldocument(); XmlNode node = doc.CreateElement("root"); node.InnerText = unescaped; return node.InnerXml;}public static string XmlUnescape(string escaped){ Xmldocument doc = new Xmldocument(); XmlNode node = doc.CreateElement("root"); node.InnerXml = escaped; return node.InnerText;}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)