escape Xml
Escapes special XML characters in text content.
This function replaces special characters like &, <, >, ", and ' with their corresponding XML escape sequences.
Typically used by rendering functions to ensure safe output (for example internal render() implementations).
Return
The escaped string.