Skip to main content

sanitize

Function sanitize 

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

Sanitize HTML with the docs allowlist: ammonia’s defaults (scripts, event handlers, styles, most attributes die) plus the MathML element set the crate’s own math emission produces.