Expand description
Manage xml character escapes
Enumsยง
- Error for XML escape / unescape.
- Error of parsing character reference (
&#<dec-number>;
or&#x<hex-number>;
).
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.