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

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

The following characters are escaped:

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