Crate escapist

Source

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.

Constants§

ENTITY_MAX_LENGTH
ENTITY_MIN_LENGTH

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.
isdigit
unescape
unescape_html