HtmlPurifier.php 835 Bytes
Newer Older
1 2 3
<?php
/**
 * @link http://www.yiiframework.com/
Carsten Brandt committed
4
 * @copyright Copyright (c) 2008 Yii Software LLC
5 6 7 8 9 10
 * @license http://www.yiiframework.com/license/
 */

namespace yii\helpers;

/**
11
 * HtmlPurifier provides an ability to clean up HTML from any harmful code.
12 13 14 15
 *
 * Basic usage is the following:
 *
 * ```php
16
 * echo HtmlPurifier::process($html);
17 18 19 20 21
 * ```
 *
 * If you want to configure it:
 *
 * ```php
Alexander Makarov committed
22
 * echo HtmlPurifier::process($html, [
23
 *     'Attr.EnableID' => true,
Alexander Makarov committed
24
 * ]);
25 26 27 28
 * ```
 *
 * For more details please refer to HTMLPurifier documentation](http://htmlpurifier.org/).
 *
29 30 31
 * Note that you should add `ezyang/htmlpurifier` to your composer.json `require` section and run `composer install`
 * before using it.
 *
32 33 34
 * @author Alexander Makarov <sam@rmcreative.ru>
 * @since 2.0
 */
35
class HtmlPurifier extends BaseHtmlPurifier
36 37
{
}