跨站脚本 [英] cross site scripting
本文介绍了跨站脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好所有
如果我在输入文本中使用验证来防止有害代码而我使用https
Server.HTMLEncode
hello all
if i use validation in my input text to prevent an harmful code and i use "https"
what is the benefit of Server.HTMLEncode
推荐答案
推荐此链接
Server.HTMLEncode Method [msdn] [ ^ ]
它声明:
Refer this link
Server.HTMLEncode Method [msdn][^]
It states that:
Quote:
HTMLEncode方法将HTML编码应用于指定的字符串。在Web应用程序中使用表单数据和其他客户端请求数据之前,这非常有用。编码数据会将可能不安全的字符转换为HTML编码的等效字符。
The HTMLEncode method applies HTML encoding to a specified string. This is useful as a quick method of encoding form data and other client request data before using it in your Web application. Encoding data converts potentially unsafe characters to their HTML-encoded equivalent.
问候..:)
Regards..:)
这篇关于跨站脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文