Function ruma::html::sanitize_html
source ยท pub fn sanitize_html(
s: &str,
mode: HtmlSanitizerMode,
remove_reply_fallback: RemoveReplyFallback,
) -> String
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.