c# 对html字符串进行编码
/// <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); }
从此山高路远,纵马扬鞭。愿往后旅途,三冬暖,春不寒,天黑有灯,下雨有伞。此生尽兴,不负勇往。