Module escape

Module escape 

Source
Expand description

XML escape and unescape utilities.

This module provides fast, allocation-minimizing functions for escaping and unescaping XML special characters.

Structs§

UnescapeError
Error type for unescape operations.

Functions§

escape
Escapes XML special characters in a string.
escape_attr
Escapes XML special characters for attribute values.
escape_to
Escapes XML special characters and appends to the given string.
unescape
Unescapes XML entities in a string.
unescape_to
Unescapes XML entities and appends to the given string.