Skip to main content

Crate htmlsanitizer

Crate htmlsanitizer 

Source

Re-exports§

pub use dfa::SanitizeWriter;
pub use tags::default_allow_list;
pub use tags::AllowList;
pub use tags::Tag;
pub use url::default_url_sanitizer;

Modules§

dfa
tags
url

Structs§

HtmlSanitizer
HTML sanitizer with a configurable allow list and URL sanitizer.

Functions§

sanitize
Convenience: sanitize HTML bytes with the default allow list.
sanitize_string
Convenience: sanitize an HTML string with the default allow list.