Floki v0.8.0 Floki.Finder

The finder engine traverse the HTML tree searching for nodes matching selectors.

Summary

Functions

Find elements inside a HTML tree

Types

html_tree :: tuple | list
selector ::
  binary |
  %Floki.Selector{attributes: term, classes: term, combinator: term, id: term, type: term} |
  [%Floki.Selector{attributes: term, classes: term, combinator: term, id: term, type: term}]

Functions

find(html_tree, selector_as_string)

Specs

Find elements inside a HTML tree.

Second argument can be either a selector string, a selector struct or an array of selector structs.