Is there a definitive anti-XSS library for PHP?

2019-01-22 19:57发布

I already know how XSS works, but finding out all the many different ways to inject malicious input is not an option.

I saw a couple libraries out there, but most of them are very incomplete, ineficient, or GPL licensed (when will you guys learn that GPL is not good to share little libraries! Use MIT)

7条回答
对你真心纯属浪费
2楼-- · 2019-01-22 20:26

htmlspecialchars() is the only function you should know about.

查看更多
登录 后发表回答