original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Apply a list of filters to some content .