Readability.Helper (readability2 v0.7.0)
Helpers for parsing, updating, removing html tree
Link to this section Summary
Functions
Check html_tree can be candidate or not.
Change existing tags by selector
Normalize and Parse to html tree(tuple or list)) from binary html
Remove html attributes
Remove tags
Count only text length
Link to this section Types
Link to this type
html_tree()
Link to this section Functions
Link to this function
candidate_tag?(html_tree)
Check html_tree can be candidate or not.
Link to this function
change_tag(content, selector, tag)
Change existing tags by selector
Link to this function
normalize(raw_html, opts \\ [])
Normalize and Parse to html tree(tuple or list)) from binary html
Link to this function
remove_attrs(content, t_attrs)
Remove html attributes
Link to this function
remove_tag(content, fun)
Remove tags
Link to this function
text_length(html_tree)
Count only text length