Benny Sutton is 4 hire - just click here

Encode String to HTML

Convenient way to use HttpUtility.HtmlEncode

           
        public static string HtmlEncode(this string data)
        {
            return HttpUtility.HtmlEncode(data);
        }

    

Returns HTML string - call like this...

         
            string s = ExtensionHelpers.HtmlEncode()