Skip to main content

html_to_text

Function html_to_text 

Source
pub fn html_to_text(html: &str) -> String
Expand description

Convert HTML to clean, readable text optimized for LLM consumption.

Strips tags, converts headings to markdown # prefixes, list items to - bullets, bold to **text**, images to [image: alt], tables to tab-separated text, and decodes HTML entities.