/// <summary> /// 对html字符串进行编码 /// </summary> /// <param name="html">html字符串</param> public static string HtmlEncode(string html) { return HttpUtility.HtmlEncode(html); } /// <summary> /// 对html字符串进行解码 /// </summary> /// <param name="html">html字符串</param> public static string HtmlDecode(string html) { return HttpUtility.HtmlDecode(html); }