public function purify($text)
    {
        $config   = \HTMLPurifier_Config::createDefault();
        $config->set("Cache.DefinitionImpl", null);
        //$config->set('Cache.SerializerPath', '/home/user/absolute/path');

        $purifier = new \HTMLPurifier($config);
    
        return $purifier->purify($text);
    }
public function purify($text)
    {
        $config   = \HTMLPurifier_Config::createDefault();
        $config->set("Cache.DefinitionImpl", null);
        //$config->set('Cache.SerializerPath', '/home/user/absolute/path');

        $purifier = new \HTMLPurifier($config);
    
        return $purifier->purify($text);
    }
public function purify ( $ text ) { $ config = \ HTMLPurifier_Config :: createDefault ( ) ; $ config -> set ( "Cache.DefinitionImpl" , null ) ; //$config->set('Cache.SerializerPath', '/home/user/absolute/path'); $ purifier = new \ HTMLPurifier ( $ config ) ; return $ purifier -> purify ( $ text ) ; }
Format text according to HTML Purifier.

@param string $text that should be formatted.

@return string as the formatted html-text.
Format text according to HTML Purifier .