quick_xml::escape

Function resolve_predefined_entity

Source
pub const fn resolve_predefined_entity(entity: &str) -> Option<&'static str>
Expand description

Resolves predefined XML entities or all HTML5 entities depending on the feature escape-html.

Behaves like resolve_xml_entity if feature is not enabled and as resolve_html5_entity if enabled.