Exemple #1
0
        public static string EntityFromChar(this string input)
        {
            string output = HttpUtility.HtmlDecode(input);

            XLog.Clear();
            foreach (KeyValuePair <string, string> k in CharacterEntityConversions.Conversions)
            {
                if (input.Contains(k.Key))
                {
                    XLog.WriteY("Entity", ": {0} — {1}\n", k.Key, k.Value);
                }
                output = output.Replace(k.Key, k.Value);
            }
            return(output);
        }