Skip to main content

clean_html_slim

Function clean_html_slim 

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

Slim HTML cleaning - removes heavy elements.

In addition to base cleaning, removes:

  • <svg> tags
  • <noscript> tags
  • <canvas> tags
  • <video> tags
  • Base64 images
  • Picture elements with data URIs