HTML Purifier is a standard HTML filter library.
HTML Purifier will not only remove all malicious code (better known as XSS) with a thoroughly audited, secure yet permissive whitelist, it will also make sure your documents are standards compliant, something only achievable with a comprehensive knowledge of W3C's specifications. HTML Purifier
```rust use html_purifier::{purifier, Settings};
let settings = Settings {
..Settings::default()
};
let input = r#"Rust"#;
let output = purifier(input, settings);
```
Input HTML
```html
Rust
```
Output HTML
html
<a href="/test"><img src="/logo.png" />Rust</a>