Namespace: XMLUtilities

XMLUtilities

A generic utility object that contains functions used throughout MetacatUI to perform useful functions related to XML, but not used to store or manipulate any state about the application.
Since:
  • 2.33.0
Source:

Methods

cleanXMLText(textString) → {string}

Cleans up the given text so that it is XML-valid by escaping reserved characters, trimming white space, etc.
Parameters:
Name Type Description
textString string The string to clean up
Source:
Returns:
- The cleaned up string
Type
string