Converts a character string into a character string in XML format.
The reserved characters (">", "<", ...) are automatically converted according to the XML standard.
// Convert a character string into a character string in XML format
sXMLString is string
sXMLString = TextToXML("the device is > than this one")
// sXMLString contains "The device is &gt; than this one"
Syntax
<Result> = TextToXML(<String to convert>)
<Result>: Character string
Character string in XML format. The following reserved characters are automatically replaced:- & becomes &
- ' becomes '
- > becomes >
- < becomes <
- " becomes "
<String to convert>: Character string
Character string to convert.