Versions in this module Expand all Collapse all v0 v0.0.8 Jun 20, 2025 Changes in this version + type Document struct + Attrs string + Children []Document + IsSVG bool + Markdown string + Tag string + Text string + func (d Document) IsEmpty() bool + type FilterConfig struct + Selectors []Selector + type NodeHandler struct + func NewNodeHandler(opts Options) *NodeHandler + func (h *NodeHandler) GetStrategy(node *html.Node) NodeHandlingStrategy + func (h *NodeHandler) IsMarkdownable(node *html.Node) bool + func (h *NodeHandler) IsTextOnly(node *html.Node) bool + type NodeHandlingStrategy int + const StrategyDefault + const StrategyFilter + const StrategyMarkdown + const StrategyPreserveWhitespace + const StrategyTextOnly + const StrategyUnwrap + func (s NodeHandlingStrategy) String() string + type Options struct + CompactSVG bool + FilterConfig *FilterConfig + Markdown bool + MaxListItems int + MaxTableRows int + ShortenText bool + SimplifyText bool + StripCSS bool + StripSVG bool + StripScripts bool + type Selector struct + Mode SelectorMode + Selector string + Type string + type SelectorMode string + const SelectorModeFilter + const SelectorModeSelect + type Simplifier struct + func NewSimplifier(opts Options) *Simplifier + func (s *Simplifier) ProcessHTML(htmlContent string) ([]Document, error) + type TextSimplifier struct + func NewTextSimplifier(markdownEnabled bool) *TextSimplifier + func (t *TextSimplifier) ConvertToMarkdown(node *html.Node) (string, bool) + func (t *TextSimplifier) ExtractText(node *html.Node) string + func (t *TextSimplifier) SimplifyText(node *html.Node) (string, bool)