ThinkPHP3加固I()函数过滤单引号 mysql 2021-07-21 178 阅读1分钟 // function.php function htmlentities_custom($str) { return htmlentities($str, ENT_QUOTES); } // config.php return [ 'DEFAULT_FILTER' => 'htmlentities_custom', ];