Файл: adultscript-2.0.3-pro/files/libraries/framework/filter/htmlsanitizer.php
Строк: 16
<?php
defined('_VALID') or die('Restricted Access!');
VF::load('html-sanitizer.html-sanitizer');
class VFilter_htmlsanitizer extends VFilter
{
private $filter;
public function __construct()
{
parent::__construct();
$this->filter = new HtmlFilter;
$this->filter->allowedTags = $this->cfg['allowed_tags'];
$this->filter->allowedAttributes = $this->cfg['allowed_attributes'];
}
public function clean($data)
{
return $this->filter->filter($data);
}
}