.NET编码解码(HtmlEncode与HtmlDecode)
编码代码:
System.Web.HttpUtility.HtmlEncode("<a href=\"http://hovertree.com/\">何问起</a>");
解码代码:
System.Web.HttpUtility.HtmlDecode("<a href="http://hovertree.com/">何问起</a> ");
编码代码:
System.Web.HttpUtility.HtmlEncode("<a href=\"http://hovertree.com/\">何问起</a>");
解码代码:
System.Web.HttpUtility.HtmlDecode("<a href="http://hovertree.com/">何问起</a> ");