Function xmlEscape

Returns a copy of the input string, after escaping all XML reserved characters.

If the string does not contain any reserved character, it is returned unmodified; otherwise, a copy is made using the specified allocator.

Prototypes

T[] xmlEscape(T, Alloc)(
  T[] str
);

T[] xmlEscape(T, Alloc)(
  T[] str,
  ref Alloc alloc
);

Authors

Copyright

License