escapeXML
This function is used by Ignition's Expression language.
Descriptionβ
Returns the given string after being escaped to be valid for inclusion in XML. This means replacing XML special characters with their XML entity equivalents.
Syntaxβ
escapeXML(string)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| String | string | The starting string. |
Resultsβ
String - A string that has been escaped for XML.
Examplesβ
Code Snippet
escapeXML("Use Navigate > PB to get to the Pork&Beans section.") //returns "Use Navigate > PB to get to the Pork&Beans section.