Laravel 5 Mews\Purizer\Purizer::\uuuu construct()必须是\Filesystem\Filesystem的实例
我在laravel 5.1上安装了Mews净化器 我使用了Frola编辑器Laravel 5 Mews\Purizer\Purizer::\uuuu construct()必须是\Filesystem\Filesystem的实例,laravel-5,htmlpurifier,Laravel 5,Htmlpurifier,我在laravel 5.1上安装了Mews净化器 我使用了Frola编辑器 https://stackoverflow.com/ <script>asdfasdfasdf</script> <iframe>qwerqwerqwer</iframe> 如果使用净化器::clean($data['detail']),它会向我发送错误消息 不应静态调用非静态方法Mews\purizer\purizer::clean() 所以,它改变了 $da
https://stackoverflow.com/
<script>asdfasdfasdf</script>
<iframe>qwerqwerqwer</iframe>
如果使用净化器::clean($data['detail']),它会向我发送错误消息
不应静态调用非静态方法Mews\purizer\purizer::clean()
所以,它改变了
$data['detail'] = (new \Mews\Purifier\Purifier)->clean($data['detail']);
也发送错误消息
类型错误:函数Mews\purizer\purizer::\uu构造()的参数太少
所以我确实改变了
(new Mews\Purifier\Purifier($data['detail'], ['AutoFormat.DisplayLinkURI' => true] ))->clean($data['detail');
类型错误:传递给Mews\Purizer\Purizer::_construct()的参数1必须是Lightlight\Filesystem\Filesystem的实例,字符串给定,在中调用
什么文件系统?什么文件
让我知道我应该如何使用它?
如果我不擅长安装,会是什么
哦,安装程序执行了以下操作
composer require mews/purifier
php artisan vendor:publish
'providers' => [
// ...
Mews\Purifier\PurifierServiceProvider::class,
],
'aliases' => [
// ...
'Purifier' => Mews\Purifier\Facades\Purifier::class,
]
composer require mews/purifier
php artisan vendor:publish
如果您知道,请告诉我。mews/purizer在
vendor/mews/purizer/src/helpers.php中有一个内置帮助程序。如果您只需运行clean($data['detail'])代码>哦,问题是门面。仅使用净化器代码>够了。