Floki v0.7.1 API Reference

Modules

Floki is a simple HTML parser that enables search for nodes using CSS selectors

It is very similar to the Selector module, but is specialized in attributes and attribute selectors

Represents the conjunction of a combinator with its selector

DeepText is a strategy to get text nodes from a HTML tree using a deep search algorithm. It will get all string nodes and concat them

Helper functions for filtering out a specific element from the tree

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

FlatText is a strategy to get text nodes from a HTML tree without search deep in the tree. It only gets the text nodes from the first level of nodes

Represents a CSS selector. It also have functions to match nodes with a given selector

Parses a list of tokens returned from SelectorTokenizer and transfor into a Selector

It decodes a given selector and returns the tokens inside it. Check the rules in “src/floki_selector_lexer.xrl”