pub fn sanitize_html(
s: &str,
mode: HtmlSanitizerMode,
remove_reply_fallback: RemoveReplyFallback,
) -> String
Available on crate feature
html
only.Expand description
Sanitize the given HTML string.
This removes the tags and attributes that are not listed in the Matrix specification.
It can also optionally remove the rich reply fallback.