[][src]Function html_escape::encode_single_quoted_attribute_to_writer

pub fn encode_single_quoted_attribute_to_writer<S: AsRef<str>, W: Write>(
    text: S,
    output: &mut W
) -> Result<(), Error>

Write text used in a single-quoted attribute to a writer.

The following characters are escaped:

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