Floki.children
You're seeing just the function
children
, go back to Floki module for more information.
Specs
Returns the direct child nodes of a HTML node.
By default, it will also include all texts. You can disable
this behaviour by using the option include_text
to false
.
If the given node is not an HTML tag, then it returns nil.
Examples
iex> Floki.children({"div", [], ["text", {"span", [], []}]})
["text", {"span", [], []}]
iex> Floki.children({"div", [], ["text", {"span", [], []}]}, include_text: false)
[{"span", [], []}]
iex> Floki.children({:comment, "comment"})
nil