Encodes a string by replacing all characters which need to be escaped with
appropriate predefined XML entities.
encode() escapes certain characters (ampersand, quote, apostrophe, less-than
and greater-than), and similarly, decode() unescapes them. These functions
are provided for convenience only. You do not need to use them when using
the std.xml classes, because then all the encoding and decoding will be done
for you automatically.
If the string is not modified, the original will be returned.
Encodes a string by replacing all characters which need to be escaped with appropriate predefined XML entities.
encode() escapes certain characters (ampersand, quote, apostrophe, less-than and greater-than), and similarly, decode() unescapes them. These functions are provided for convenience only. You do not need to use them when using the std.xml classes, because then all the encoding and decoding will be done for you automatically.
If the string is not modified, the original will be returned.