htmlEncode (Client API reference)

Converts a string to an HTML-encoded string.

Syntax

Xrm.Encoding.htmlEncode(arg)

Parameters

Parameter Name Type Required Description
arg String Required String to be encoded.

Return Value

Type: String

Description: Encoded string.

htmlAttributeEncode
htmlDecode