pub fn decode_html_text(s: &str) -> Cow<'_, str>Expand description
Expand character references in HTML text.
Handles &name;, { and {. Anything that is not a reference is
left exactly as written, which is what a browser does and what a converter
needs: a bare & in AT&T must survive.
HTML permits a named reference without its semicolon (& and &X
both yield &), so the longest matching name is taken when the semicolon is
missing. Borrows when there is nothing to expand.