您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

一个快速的XSS消除PHP库:Stauros

2024/10/21 23:05:41发布29次查看
stauros 一个快速的xss消除php库.
important this is an experimental library, use at your own risk how to use it with the default settings, simply callstauros->scanhtml():
$stauros = new stauros;$clean = $stauros->scanhtml($dirty);
easy as that
working with streams stauros supports streaming content as well. you can use a stream as input, getting a string as output:
$clean = $stauros->scanhtmlstreamtostring($stream);
or you can use it as a stream to stream process:
$stauros->scanhtmlstreamtostream($input, $output);
advanced usage the configuration class (stauros\html\config) allows you to specify html tag whitelists, as well as attribute whitelist and implement an attribute callback for further customization.
项目主页:http://www.open-open.com/lib/view/home/1441378271175
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product