[][src]Module pulldown_cmark::escape

Utility functions for HTML escaping. Only useful when building your own HTML renderer.

Structs

WriteWrapper

This wrapper exists because we can't have both a blanket implementation for all types implementing Write and types of the for &mut W where W: StrWrite. Since we need the latter a lot, we choose to wrap Write types.

Traits

StrWrite

Trait that allows writing string slices. This is basically an extension of std::io::Write in order to include String.

Functions

escape_href

Writes an href to the buffer, escaping href unsafe bytes.

escape_html

Writes the given string to the Write sink, replacing special HTML bytes (<, >, &, ") by escape sequences.