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

yinghualeihenmei / 2023-07-25 / 原文

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);

}