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
			| 
											13 years ago
										 | <?php
 | ||
|  | /**
 | ||
|  |  * @copyright Copyright (c) 2008 Yii Software LLC
 | ||
|  |  * @link http://www.yiiframework.com/
 | ||
|  |  * @license http://www.yiiframework.com/license/
 | ||
|  |  */
 | ||
|  | 
 | ||
|  | namespace yii\helpers;
 | ||
|  | 
 | ||
|  | /**
 | ||
| 
											13 years ago
										 |  * HtmlPurifier provides an ability to clean up HTML from any harmful code.
 | ||
| 
											13 years ago
										 |  *
 | ||
|  |  * Basic usage is the following:
 | ||
|  |  *
 | ||
|  |  * ```php
 | ||
| 
											13 years ago
										 |  * echo HtmlPurifier::process($html);
 | ||
| 
											13 years ago
										 |  * ```
 | ||
|  |  *
 | ||
|  |  * If you want to configure it:
 | ||
|  |  *
 | ||
|  |  * ```php
 | ||
| 
											13 years ago
										 |  * echo HtmlPurifier::process($html, array(
 | ||
| 
											13 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
 | ||
|  |  */
 | ||
| 
											13 years ago
										 | class HtmlPurifier extends base\HtmlPurifier
 | ||
| 
											13 years ago
										 | {
 | ||
|  | }
 |