Argentini.Halide.H3Xml.RssFilter C# (CSharp) Method

RssFilter() public static method

Filters text for use in RSS feeds.
public static RssFilter ( string strVar ) : String
strVar string String to process.
return String
        public static String RssFilter(string strVar)
        {
            string STR = strVar;

            STR = H3Text.StripHtml(STR, false, false);

            STR = STR.Replace("&", "&");
            STR = STR.Replace("&", "&");
            STR = STR.Replace("\r", " ");
            STR = STR.Replace("\n", " ");
            STR = STR.Replace("'", "’");
            STR = STR.Replace("\"", """);
            STR = STR.Replace("—", "—");
            STR = STR.Replace("ó", "—");
            STR = STR.Replace("–", "—");
            STR = STR.Replace("ñ", "—");
            STR = STR.Replace("%", " percent");
            STR = STR.Replace("®", "®");

               for (int x = 0; x < STR.Length; x++)
               {
                   int y = (int)STR[x];
                   if (y > 122) STR = STR.Remove(x, 1).Insert(x, " ");
               }

            return (STR);
        }