Tp5设置参数全局过滤方法

231 阅读1分钟

在配置文件 config.php 中配置:

// 默认全局过滤方法 用逗号分隔多个
'default_filter' => 'htmlspecialchars,addslashes,strip_tags',