Skip to main content

strip_html

Function strip_html 

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

Minimal HTML → text: drop <script>/<style> blocks, strip tags, decode common entities, collapse whitespace. Enough for retrieval; not a full renderer.