[][src]Function html_escape::encode_safe_to_writer

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

Encode text to prevent special characters functioning and write it to a writer.

The following characters are escaped:

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