Floki.DeepText
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.
Summary
get(html_tree) | Get text nodes from a deep tree of HTML nodes |
Types
html_tree :: tuple | list
Functions
Specs:
- get(html_tree) :: binary
Get text nodes from a deep tree of HTML nodes.
Examples
iex> Floki.DeepText.get([{"a", [], ["The meaning of life is...", {"strong", [], ["something else"]}] }])
"The meaning of life is...something else"