使用安全的HTML编码函数解决XSS攻击

发布时间 2023-07-25 19:50:44作者: yinghualeihenmei

https://www.sohu.com/a/229034179_100158559

https://blog.csdn.net/mgxcool/article/details/73028502

对url链接进行转义

public String htmlEncode(String str)
{
return Server.HtmlEncode(str);

}