readability v0.7.0 Readability.Candidate.Cleaner

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

Summary

Functions

Remove unlikely html tree

Transform misused divs

s that do not contain other block elements into

s

Types

html_tree()
html_tree() :: tuple | list

Functions

remove_unlikely_tree(html_tree)
remove_unlikely_tree(html_tree) :: html_tree

Remove unlikely html tree

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