Download the PHP package jeristiano/think-purifier without Composer
On this page you can find all versions of the php package jeristiano/think-purifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jeristiano/think-purifier
More information about jeristiano/think-purifier
Files in jeristiano/think-purifier
Download jeristiano/think-purifier
More information about jeristiano/think-purifier
Files in jeristiano/think-purifier
Vendor jeristiano
Package think-purifier
Short Description Thinkphp 5 HtmlPurifier Package
License Apache-2.0
Package think-purifier
Short Description Thinkphp 5 HtmlPurifier Package
License Apache-2.0
Please rate this library. Is it a good library?
Informations about the package think-purifier
think-purifier
XSS跨站脚本攻击
XSS是一种经常出现在web应用中的计算机安全漏洞,它允许恶意web用户将代码植入到提供给其它用户使用的页面中。比如这些代码包括HTML代码和客户端脚本。
介绍(Introduce)
think-purifierncomposer包对HTMLPurifier的封装,是HTMLPurifier for laravel的thinkphp5版本,作用是用来防止XSS跨站攻击,通过预定义配置,过滤危险的脚本内容达到预防XSS攻击的目的。
安装(Install)
composer require jeristiano/thinkphp-purifier
配置 (Configuration)
配置文件位于 application/extra/purifier.php
参考配置如下:
使用(Usage)
此package是参照了HTMLPurifier for Laravel 5 ,地址 :https://github.com/mewebstudio/Purifier 详细的配置方法请参照此.
推荐配置例子 (Recommaded Configuration)
例子(Sample)
clean('This is my H1 title', 'user_topic_body'); //动态加载配置 clean('This is my H1 title', array('Attr.EnableID' => true));
All versions of think-purifier with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
topthink/think-helper Version >=1.0.4
topthink/think-installer Version >=1.0.10
ezyang/htmlpurifier Version 4.10.*
topthink/think-helper Version >=1.0.4
topthink/think-installer Version >=1.0.10
ezyang/htmlpurifier Version 4.10.*
The package jeristiano/think-purifier contains the following files
Loading the files please wait ....