View Source Readability.Sanitizer (readability v0.12.1)

Clean an element of all tags of type "tag" if they look fishy.

"Fishy" is an algorithm based on content length, classnames, link density, number of images & embeds, etc.

Summary

Types

@type html_tree() :: tuple() | list()

Functions

Link to this function

sanitize(html_tree, candidates, opts \\ [])

View Source
@spec sanitize(html_tree(), [Readability.Candidate.t()], list()) :: html_tree()

Sanitizes article HTML tree.