html_main_element library Null safety

Classes

ReadabilityConfig
Configuration class for readability algorithm Class and tag names should be lowercase characters

Properties

defaultReadabilityConfig ReadabilityConfig
Default configuration for the readability algorithm.
final

Functions

readabilityMainElement(Element root, [ReadabilityConfig? conf]) Element
Returns the highest scoring element under root using readability algorithm with conf configuration.
readabilityScore(Element root, [ReadabilityConfig? conf]) Map<Element, double>
Rules for readability scoring based on github.com/mozilla/readablility: