Skip to main content
Version: 8.1

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

    • 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.