MCPcopy
hub / github.com/PuerkitoBio/goquery / Filter

Method Filter

filter.go:7–9  ·  view source on GitHub ↗

Filter reduces the set of matched elements to those that match the selector string. It returns a new Selection object for this subset of matching elements.

(selector string)

Source from the content-addressed store, hash-verified

5// Filter reduces the set of matched elements to those that match the selector string.
6// It returns a new Selection object for this subset of matching elements.
7func (s *Selection) Filter(selector string) *Selection {
8 return s.FilterMatcher(compileMatcher(selector))
9}
10
11// FilterMatcher reduces the set of matched elements to those that match
12// the given matcher. It returns a new Selection object for this subset

Callers

nothing calls this directly

Calls 2

FilterMatcherMethod · 0.95
compileMatcherFunction · 0.85

Tested by

no test coverage detected