XML encoding

Syntax

	encodeXML(input: $stringToEncode)

Description

Converts special XML characters in a string into their corresponding XML entities to ensure safe use in XML content.

Parameters

Name Type Type Description Mandatory Standard
Input String The character string to be encoded, which may contain special XML characters. yes

Return value

Type: String

The XML-encoded string in which all special XML characters have been replaced by their corresponding entities.

Examples

	encodeXML("<text>test</text>")

Output: &lt;text&gt;test&lt;/text&gt;