toQuote

Converts single and double-quote characters within the passed in string to their XML encoded strings.

Syntax

toQuote(string)

Parameters

string

Specifies the string to be converted. The original string is not modified.

Returns

Returns a string in which all single and double quote characters are converted to their XML encoded strings.

Remarks

The following characters are converted as indicated in the following table:

Character

Result

‘ (single quote)

'

“ (double quote)

"