html编码对照表

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

XML中的编码对照:

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

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

原文地址:https://www.cnblogs.com/mingle/p/2599670.html