public static string HtmlEncode(this string html) { return System.Web.HttpUtility.HtmlEncode(html); } /// <summary>