Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2   12.3    Statistic    FMM    Blog  


Encodes text as xml.

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

(old name: String.EncodeToXML)


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


The encoded text.


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


Encode text as xml:

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

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

See also

Example Databases

Blog Entries

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

Text.EncodeToURL - Text.EncodeURLComponent

Feedback: Report problem or ask question.

Start Chat