RichText.HTMLText
-----------------

Converts the current rich text to html.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [RichText](component_RichText.md) | [6.0](newinversion60.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "RichText.HTMLText" ) ### Parameters

none

### Result

Returns html or error.

### Description

Converts the current rich text to html.  
This does not handle all, but most attributes.  
### Examples

Read in HTML and output it:

 Set Variable \[ $r ; Value: MBS ( "[RichText.ReadHTML](RichTextReadHTML.md)"; "&lt;html&gt;&lt;body&gt;&lt;p&gt;&lt;b&gt;Schokoladenplätzchen&lt;/b&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;" ) \]   
Show Custom Dialog \[ "HTML" ; MBS ( "RichText.HTMLText" ) \]  
### See also

- [RichText.ReadHTML](RichTextReadHTML.md)
- [RichText.ReadText](RichTextReadText.md)
- [RichText.ReplaceText](RichTextReplaceText.md)
- [RichText.SetText](RichTextSetText.md)

### Release notes

- **Version 9.1**
    - Rewrote [RichText.HTMLText](http://www.mbsplugins.eu/RichTextHTMLText.shtml) to return better html.

### Example Databases

- [Mac only/RichText/RTF to formatted text](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/RichText/RTF%20to%20formatted%20text.shtml#1ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 9.1pr3](https://www.mbsplugins.de/archive/2019-02-18/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 11st January 2016 , last changed 25th November 2017

  
[RichText.GeneratePDF](RichTextGeneratePDF.md) - [RichText.RTF](RichTextRTF.md)

[HTML Version](RichTextHTMLText.shtml)