true, * )); * ``` * * For more details please refer to HTMLPurifier documentation](http://htmlpurifier.org/). * * @author Alexander Makarov * @since 2.0 */ class Purifier { public static function process($content, $config = null) { $purifier=\HTMLPurifier::instance($config); $purifier->config->set('Cache.SerializerPath', \Yii::$app->getRuntimePath()); return $purifier->purify($content); } }