Skip to main content

clean_html_base

Function clean_html_base 

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

Clean the HTML removing CSS and JS (base level).

Removes:

  • <script> tags
  • <style> tags
  • <link> tags
  • <iframe> tags
  • Elements with display:none
  • Ad and tracking elements
  • Non-essential meta tags