thinkphp6 过滤XSS攻击 详解
首先使用composer执行命令composer require ezyang/htmlpurifier在app/common.php公共文件中定义remove_xss函数if (!function_exists('remove_xss')) { //使用htmlpurifier防范xss攻击 function remove_xss($string){ //相对index.php入口文件,引入HTMLPurifier.auto.php核心文件 .


