Skip to main content

strip_html

Function strip_html 

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

Strip HTML tags from content, handling script/style blocks and HTML entities.

This is the most comprehensive version: it skips <script> and <style> blocks, decodes common HTML entities, and collapses whitespace.