Function quick_xml::escape::unescape_with
source · pub fn unescape_with<'input, 'entity, F>(
raw: &'input str,
resolve_entity: F
) -> Result<Cow<'input, str>, EscapeError>where
F: FnMut(&str) -> Option<&'entity str>,
Expand description
Unescape an &str
and replaces all xml escaped characters (&...;
) into
their corresponding value, using a resolver function for custom entities.
If feature escape-html
is enabled, then recognizes all HTML5 escapes.