quick_xml

Module escape

source
Expand description

Manage xml character escapes

Enumsยง

Functionsยง

  • _escape ๐Ÿ”’
    Escapes an &str and replaces a subset of xml special characters (<, >, &, ', ") with their corresponding xml escaped value.
  • Escapes an &str and replaces all xml special characters (<, >, &, ', ") with their corresponding xml escaped value.
  • from_str_radix ๐Ÿ”’
  • 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.
  • parse_number ๐Ÿ”’
  • Escapes an &str and replaces xml special characters (<, >, &) with their corresponding xml escaped value.
  • 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.