public static DecodeXmlAttribute ( string sInput ) : string | ||
sInput | string | |
Результат | string |
public void DecodeXmlAttributeTest() { string sFixed = XmlUtils.DecodeXmlAttribute("abc&def<ghi>jkl"mno'pqr&stu"); Assert.AreEqual("abc&def<ghi>jkl\"mno'pqr&stu", sFixed, "First Test of DecodeXmlAttribute"); sFixed = XmlUtils.DecodeXmlAttribute("abc&def
ghijklŸmno"); Assert.AreEqual("abc&def\r\nghi\u001Fjkl\u007F\u009Fmno", sFixed, "Second Test of DecodeXmlAttribute"); }