1.对用户输入的内容进行转义

//1.过滤内容中html标记
$userinput=strip_tags($userinput);
//2.转换成HTML实体
$userinput=htmlentities($userinput);

 

相关文章:

  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-16
  • 2021-05-19
  • 2022-03-08
猜你喜欢
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
相关资源
相似解决方案