1.在公共函数文件common.php中加入方法

1 function filter_default($value)
2     {
3         return htmlspecialchars($value, ENT_NOQUOTES);
4     }

2.在配置文件app.php中修改default_filter参数

'default_filter'         => 'filter_default'

相关文章:

  • 2021-09-20
  • 2021-11-03
  • 2021-09-07
  • 2021-09-08
  • 2021-12-28
  • 2022-01-18
  • 2021-12-22
猜你喜欢
  • 2020-12-18
  • 2021-05-08
  • 2021-11-27
  • 2021-09-11
  • 2021-12-26
  • 2019-08-04
  • 2017-12-05
  • 2021-12-09
相关资源
相似解决方案