PHP XSS Question / Clarification

后端 未结 3 556
一向
一向 2021-01-12 22:50

This has been asked before but I need 100% clarity on this issue as it\'s very important for me to get it right.

The situation: A message system on a website. The

3条回答
  •  天涯浪人
    2021-01-12 23:35

    Please check the OWASP XSS Prevention Cheat Sheet. It will explain how to avoid XSS for different contexts. Htmlentities should do the job when between tags.

提交回复
热议问题