WikiFunctions.Tools.UnescapeXML C# (CSharp) Method

UnescapeXML() public static method

Replaces escaped characters in XML with the single character: apostrophe, quote, greater than, less than, ampersand
public static UnescapeXML ( string s ) : string
s string
return string
        public static string UnescapeXML(string s)
        {
            if (string.IsNullOrEmpty(s)) return s;

            string returnString = s;
            returnString = returnString.Replace("'", "'");
            returnString = returnString.Replace(""", "\"");
            returnString = returnString.Replace(">", ">");
            returnString = returnString.Replace("&lt;", "<");
            return returnString.Replace("&amp;", "&");
        }
Tools