libdav::xmlutils

Function escape_text

source
pub fn escape_text(raw: &str) -> Cow<'_, str>
Expand description

Replaces characters that need to be escaped in texts.

< –> &lt; > –> &gt; & –> &amp;

This IS NOT usable in other contexts of XML encoding.