Function html_escape::encode_double_quoted_attribute[][src]

pub fn encode_double_quoted_attribute<S: ?Sized + AsRef<str>>(
    text: &S
) -> Cow<'_, str>

Encode text used in a double-quoted attribute.

The following characters are escaped:

  • & => &amp;
  • < => &lt;
  • > => &gt;
  • " => &quot;