HttpUtility.HtmlEncode(string)
HttpUtility.HtmlDecode(string)
本文介绍两种HTML字符串处理方法:HtmlEncode用于将普通字符串转换为HTML安全字符串,防止XSS攻击;HtmlDecode则实现从HTML安全字符串还原成原始字符串的过程。
HttpUtility.HtmlEncode(string)
HttpUtility.HtmlDecode(string)
4万+
2256
1103

被折叠的 条评论
为什么被折叠?