HTML编码的用户输入

public string Browse(string genre)

{

returen HttpUtility.HtmlEncode(genre);

}

HttpUtility.HtmlEncode能阻止JavaScript代码

posted on 2014-04-16 14:19  YingShan  阅读(113)  评论(0)    收藏  举报

导航