[][src]Function html_escape::encode_quoted_attribute

pub fn encode_quoted_attribute<S: ?Sized + AsRef<str>>(text: &S) -> Cow<str>

Encode text used in a quoted attribute.

The following characters (HTML reserved characters) are escaped:

  • & => &amp;
  • < => &lt;
  • > => &gt;
  • " => &quot;
  • ' => &#x27;