quick_xml

Module escape

Source
Expand description

Manage xml character escapes

Enums§

Functions§

  • Escapes an &str and replaces all xml special characters (<, >, &, ', ") with their corresponding xml escaped value.
  • XML standard requires that only < and & was escaped in text content or attribute value. All other characters not necessary to be escaped, although for compatibility with SGML they also should be escaped. Practically, escaping only those characters is enough.
  • Escapes an &str and replaces xml special characters (<, >, &) with their corresponding xml escaped value.
  • Resolves all HTML5 entities. For complete list see https://dev.w3.org/html5/html-author/charref.
  • Resolves predefined XML entities or all HTML5 entities depending on the feature escape-html.
  • Resolves predefined XML entities. If specified entity is not a predefined XML entity, None is returned.
  • Unescape an &str and replaces all xml escaped characters (&...;) into their corresponding value.
  • Unescape an &str and replaces all xml escaped characters (&...;) into their corresponding value, using a resolver function for custom entities.