Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3    Statistic  

Text.EncodeToXML

Encodes text as xml.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Text 4.3 Yes Yes Yes Yes Yes

MBS( "Text.EncodeToXML"; text )

(old name: String.EncodeToXML)

Parameters

Parameter Description Example value
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


Text.EncodeToURL   -   Text.EncodeURLComponent

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins