Text.Serialize
--------------

Serializes styled text as text.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Text](component_Text.md) | [5.4](newinversion54.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Text.Serialize"; Text ) 

**MBS**( **"Text.Serialize";** /\* Serializes styled text as text. \*/  
**$Text**) /\* The styled text to serialize.e.g. "Hello World" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Text | The styled text to serialize. | "Hello World" |

### Result

Returns text or error.

### Description

Serializes styled text as text.  
The styled text content is stored in a base64 encoded string which the plugin function [Text.Deserialize](TextDeserialize.md) can read.  
Using this function allows to store a styled text in a text field or transmit it with [Socket](component_Socket.md) functions, [SerialPort](component_SerialPort.md) functions or by writing it to a file.  
  
See also [Text.Styles](TextStyles.md) and [Text.FromStyles](TextFromStyles.md) to serialize with JSON.  
### See also

- [List.Serialize](ListSerialize.md)
- [Text.Deserialize](TextDeserialize.md)
- [Text.FromStyles](TextFromStyles.md)
- [Text.Styles](TextStyles.md)

### Example Databases

- [Text functions/Text Styles](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Text%20functions/Text%20Styles.shtml#3ScriptAnchor_)
- [Text functions/Text to RTF or HTML](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Text%20functions/Text%20to%20RTF%20or%20HTML.shtml#6ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 5.4pr4](https://www.mbsplugins.de/archive/2015-10-29/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 28th October 2015 , last changed 3th June 2022

  
[Text.RightTrim](TextRightTrim.md) - [Text.SoundEx](TextSoundEx.md)

[HTML Version](TextSerialize.shtml)