You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
701 B
35 lines
701 B
12 years ago
|
<?php
|
||
|
/**
|
||
|
* @copyright Copyright (c) 2008 Yii Software LLC
|
||
|
* @link http://www.yiiframework.com/
|
||
|
* @license http://www.yiiframework.com/license/
|
||
|
*/
|
||
|
|
||
|
namespace yii\helpers;
|
||
|
|
||
|
/**
|
||
12 years ago
|
* HtmlPurifier provides an ability to clean up HTML from any harmful code.
|
||
12 years ago
|
*
|
||
|
* Basic usage is the following:
|
||
|
*
|
||
|
* ```php
|
||
12 years ago
|
* echo HtmlPurifier::process($html);
|
||
12 years ago
|
* ```
|
||
|
*
|
||
|
* If you want to configure it:
|
||
|
*
|
||
|
* ```php
|
||
12 years ago
|
* echo HtmlPurifier::process($html, array(
|
||
12 years ago
|
* 'Attr.EnableID' => true,
|
||
|
* ));
|
||
|
* ```
|
||
|
*
|
||
|
* For more details please refer to HTMLPurifier documentation](http://htmlpurifier.org/).
|
||
|
*
|
||
|
* @author Alexander Makarov <sam@rmcreative.ru>
|
||
|
* @since 2.0
|
||
|
*/
|
||
12 years ago
|
class HtmlPurifier extends base\HtmlPurifier
|
||
12 years ago
|
{
|
||
|
}
|