readability v0.9.0 Readability.Candidate.Cleaner

Clean html tree for prepare candidates. It transforms misused tags and removes unlikely candidates.

Link to this section Summary

Functions

Remove unlikely html tree

Transform misused divs

s that do not contain other block elements into

s

Link to this section Types

Link to this type html_tree()
html_tree() :: tuple | list

Link to this section Functions

Link to this function remove_unlikely_tree(html_tree)
remove_unlikely_tree(html_tree) :: html_tree

Remove unlikely html tree

Link to this function transform_misused_div_to_p(content)
transform_misused_div_to_p(html_tree) :: html_tree

Transform misused divs

s that do not contain other block elements into

s