public function filter($string, $filter = null)
    {
        if (!isset($filter)) {
            $filter = $this->current_filter;
        }

        $delimiter = $this->config('teaser_delimiter', '<!--teaser-->');
        $string = str_replace($delimiter, htmlspecialchars($delimiter), $string);
        return $this->filter->run($string, $filter);
    }
public function filter($string, $filter = null)
    {
        if (!isset($filter)) {
            $filter = $this->current_filter;
        }

        $delimiter = $this->config('teaser_delimiter', '<!--teaser-->');
        $string = str_replace($delimiter, htmlspecialchars($delimiter), $string);
        return $this->filter->run($string, $filter);
    }
public function filter ( $ string , $ filter = null ) { if ( ! isset ( $ filter ) ) { $ filter = $ this -> current_filter ; } $ delimiter = $ this -> config ( 'teaser_delimiter' , '<!--teaser-->' ) ; $ string = str_replace ( $ delimiter , htmlspecialchars ( $ delimiter ) , $ string ) ; return $ this -> filter -> run ( $ string , $ filter ) ; }
Clean up HTML string using defined HTML filters
@param string $string
@param mixed $filter
@return string
Clean up HTML string using defined HTML filters