Skip to main content

resolve_entity

Function resolve_entity 

Source
pub fn resolve_entity(entity: &BytesRef<'_>) -> String
Expand description

Resolve a single entity reference event to the text it stands for.

Handles numeric references (&#65;, &#x41;) and the five XML predefined entities. An unresolvable reference is reproduced verbatim (&name;) so it survives a round trip instead of vanishing.