filter_var vs htmlentities vs htmlspecialchars

前端 未结 1 617
-上瘾入骨i
-上瘾入骨i 2021-01-04 01:04

Disclaimer

This is not a question about whether we should be escaping for database input. This is strictly look

相关标签:
1条回答
  • 2021-01-04 01:23

    My guess (about lack of adoption) would be it's simply because the Filter extension is only enabled by default since v5.2, whereas the html* methods have been around longer.

    0 讨论(0)
提交回复
热议问题