Module pulldown_cmark::escape
source · Expand description
Utility functions for HTML escaping. Only useful when building your own HTML renderer.
Structs§
- This wrapper exists because we can’t have both a blanket implementation for all types implementing
Writeand types of the for&mut WwhereW: StrWrite. Since we need the latter a lot, we choose to wrapWritetypes.
Traits§
- Trait that allows writing string slices. This is basically an extension of
std::io::Writein order to includeString.
Functions§
- Writes an href to the buffer, escaping href unsafe bytes.
- Writes the given string to the Write sink, replacing special HTML bytes (<, >, &, “) by escape sequences.