pub fn escape_attribute(value: &str) -> StringExpand description
Escapes a value for a double-quoted HTML attribute.
This matches PHP’s htmlspecialchars($value, ENT_QUOTES|ENT_SUBSTITUTE): &, <, >, ",
and ' become &, <, >, ", and '. No other character changes, and
& is escaped first so that an existing entity is not rewritten twice.