Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Text.EncodeToXML

Encodes text as xml.

Component Version macOS Windows Linux Server iOS SDK
Text 4.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Text.EncodeToXML"; text )   More

(old name: String.EncodeToXML)

Parameters

Parameter Description Example
text The text you want to encode. "Grüße"

Result

The encoded text.

Description

Encodes text as xml.
Only escapes quotes, ampersand, smaller and greater characters.
If you need all html entities to be encoded, please use Text.EncodeToHTML instead.
Lower ASCII control characters are ignored (removed).

Examples

Encode text as xml:

MBS( "Text.EncodeToXML"; "Grüße <test>" )

Example result: "Grüße &lt;test&gt;"

See also

Example Databases

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 27th April 2017


Text.EncodeToURL - Text.EncodeURLComponent