html编码对照表

•Change “%7B” to “{”
 •Change all “%2D” to “-“
 •Chnage “%7D” to “}”

 

XML中的编码对照:

<", "&lt;").Replace(">", "&gt;

 

建议对字符串进行如下处理:System.Web.HttpUtility.HtmlEncode(string input)

posted @ 2012-07-19 17:10  风影极光  阅读(194)  评论(0编辑  收藏  举报