pub(crate) fn _escape<F: Fn(u8) -> bool>(
raw: &str,
escape_chars: F,
) -> Cow<'_, str>
Expand description
Escapes an &str
and replaces a subset of xml special characters (<
, >
,
&
, '
, "
) with their corresponding xml escaped value.