pub fn decode(input: &str, attribute: bool) -> Cow<'_, str>Expand description
Decode HTML character references and normalize input CRLF and CR to LF.
In attribute mode, NUL becomes U+FFFD and semicolonless named references are left
intact before ASCII letters, digits, or =. Unchanged input is borrowed.
References are decoded once: &lt; becomes <.