readability v0.5.1 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 :: tuple | list

Functions

remove_unlikely_tree(html_tree)

Specs

remove_unlikely_tree(html_tree) :: html_tree

Remove unlikely html tree

transform_misused_div_to_p(content)

Specs

transform_misused_div_to_p(html_tree) :: html_tree

Transform misused divs

s that do not contain other block elements into

s