编程语言
首页 > 编程语言> > ThinkPHP3加固I()函数过滤单引号

ThinkPHP3加固I()函数过滤单引号

作者:互联网

function.php

function htmlentities_custom($str) {
	return htmlentities($str, ENT_QUOTES);
}

config.php

return [
	'DEFAULT_FILTER' => 'htmlentities_custom',
];

标签:function,return,ThinkPHP3,custom,htmlentities,str,加固,php,单引号
来源: https://www.cnblogs.com/sunr/p/16670200.html