码迷,mamicode.com
首页 > Web开发 > 详细

HTML编码

时间:2016-03-09 16:03:09      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:

string str = "%3D1%26"; string newstr = Server.UrlDecode(str); Response.Write(newstr);
输出结果为: =1&
不过你这应该是Url编码的,如果是HTML编码的应该用Server.HtmlEncode();
用 HttpUtility.HtmlDecode()也是可以的,不过我习惯用Server类

HTML编码

标签:

原文地址:http://www.cnblogs.com/yanganok/p/5258257.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!