library/Garp/Model/Behavior/HtmlFilterable.php
public function filter($string, HTMLPurifier_Config $config) {
        if (!$string) {
            return $string;
        }
        $config->finalize();
        $purifier = new HTMLPurifier($config);
        $string = $purifier->purify($string);
        return $string;
    }
public function filter($string, HTMLPurifier_Config $config) {
        if (!$string) {
            return $string;
        }
        $config->finalize();
        $purifier = new HTMLPurifier($config);
        $string = $purifier->purify($string);
        return $string;
    }
public function filter ( $ string , HTMLPurifier_Config $ config ) { if ( ! $ string ) { return $ string ; } $ config -> finalize ( ) ; $ purifier = new HTMLPurifier ( $ config ) ; $ string = $ purifier -> purify ( $ string ) ; return $ string ; }
Filter unwanted HTML out of a string

@param String $string The string
@param HTMLPurifier_Config $config
@return String The filtered string
Filter unwanted HTML out of a string