Expand description
Opinionated HTML parsing and manipulating library.
Like the rest of the Ruma crates, this crate is primarily meant to be used for the Matrix protocol. It should be able to be used to interact with any HTML document but will offer APIs focused on specificities of HTML in the Matrix specification..
§Features
matrix
- Allow to convert HTML elements data into enums with variants for elements and attributes suggested by the Matrix Specification.
Structs§
- A tag attribute, e.g.
class="test"
in<div class="test" ...>
. - An iterator through the children of a node.
- The replacement of an element’s attributes.
- An element’s attributes’ URI schemes.
- The data of an HTML element.
- An HTML fragment.
- The replacement of a name.
- A reference to an HTML node.
- A list of properties names for a parent.
- A fully qualified name (with a namespace), used to depict names of tags and attributes.
- Configuration to sanitize HTML elements and attributes.
Enums§
- What HTML elements and attributes should be kept by the sanitizer.
- The behavior of the setting.
- The data of a
Node
. - Whether to remove the rich reply fallback while sanitizing.
Functions§
- Remove the rich reply fallback of the given HTML string.
- Sanitize the given HTML string.
Type Aliases§
Tendril
for storing native Rust strings.