Function html2pango::matrix_html_to_markup
source · pub fn matrix_html_to_markup(s: &str) -> String
Expand description
Sanitizes and convert Matrix custom HTML markup (formatted body) to Pango Markup.
First sanitizes the input string by leaving in only the HTML tags and attributes allowed
by the Matrix specification and then uses markup_html
to convert the sanitized string to
Pango Markup.
Errors
Returns an error if reading from the strings fails.
Examples
TODO