Escapes text for XML content and attribute values.
the value; null and undefined escape to ''
the escaped text
Escapes text for XML content and attribute values.