matrix_sdk_base::ruma::html

Function 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.