Function quick_xml::escape::unescape_with
source · [−]pub fn unescape_with<'a>(
raw: &'a [u8],
custom_entities: &HashMap<Vec<u8>, Vec<u8>>
) -> Result<Cow<'a, [u8]>, EscapeError>
Expand description
Unescape a &[u8]
and replaces all xml escaped characters (‘&…;’) into their corresponding
value, using a dictionnary of custom entities.
Pre-condition
The keys and values of custom_entities
, if any, must be valid UTF-8.