[][src]Function khtml::escape_inner

pub fn escape_inner<S>(text: S, output: &mut String) -> &str where
    S: AsRef<str>, 

Write text used as regular HTML text to a mutable String reference and return the encoded string slice.

The following characters are escaped:

  • & => &amp;
  • < => &lt;