DecodeXmlAttribute() публичный статический Метод

Convert an encoded attribute string into plain text.
public static DecodeXmlAttribute ( string sInput ) : string
sInput string
Результат string
Пример #1
0
        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&amp;def&#xD;&#xA;ghi&#x1F;jkl&#x7F;&#x9F;mno");
            Assert.AreEqual("abc&def\r\nghi\u001Fjkl\u007F\u009Fmno", sFixed, "Second Test of DecodeXmlAttribute");
        }