Xrm.Encoding (Client API reference)

Applies to Dynamics 365 (online), version 9.x

Provides methods to encode and decode strings.

Method Description
htmlAttributeEncode Encodes the specified string so that it can be used in an HTML attribute.
htmlDecode Converts a string that has been HTML-encoded into a decoded string.
htmlEncode Converts a string to an HTML-encoded string.
xmlAttributeEncode Encodes the specified string so that it can be used in an XML attribute.
xmlEncode Converts a string to an XML-encoded string.

Client API Xrm object