quick_xml::escape

Function _escape

Source
pub(crate) fn _escape<'a, F: Fn(u8) -> bool>(
    raw: impl Into<Cow<'a, str>>,
    escape_chars: F,
) -> Cow<'a, str>
Expand description

Escapes an &str and replaces a subset of xml special characters (<, >, &, ', ") with their corresponding xml escaped value.