pub fn decode_html_entities(s: &str) -> Cow<'_, str>Expand description
Decode HTML5 character references (>, &, <, {, …)
inside a string. Unrecognised &foo runs are left as-is.
JSX text and JSX literal attribute values both go through HTML entity
decoding before reaching the runtime: <p>></p> and <p title=">"/>
both materialise as a > character. This helper is shared so the two
call sites agree on the entity table.