protected function apply_filter_chain($text, $filterchain, array $options = array(),
            array $skipfilters = null) {
        foreach ($filterchain as $filtername => $filter) {
            if ($skipfilters !== null && in_array($filtername, $skipfilters)) {
                continue;
            }
            $text = $filter->filter($text, $options);
        }
        return $text;
    }
protected function apply_filter_chain($text, $filterchain, array $options = array(),
            array $skipfilters = null) {
        foreach ($filterchain as $filtername => $filter) {
            if ($skipfilters !== null && in_array($filtername, $skipfilters)) {
                continue;
            }
            $text = $filter->filter($text, $options);
        }
        return $text;
    }
protected function apply_filter_chain ( $ text , $ filterchain , array $ options = array ( ) , array $ skipfilters = null ) { foreach ( $ filterchain as $ filtername => $ filter ) { if ( $ skipfilters !== null && in_array ( $ filtername , $ skipfilters ) ) { continue ; } $ text = $ filter -> filter ( $ text , $ options ) ; } return $ text ; }
Apply a list of filters to some content.
@param string $text
@param moodle_text_filter[] $filterchain array filter name => filter object.
@param array $options options passed to the filters.
@param array $skipfilters of filter names. Any filters that should not be applied to this text.
@return string $text
Apply a list of filters to some content .