Text.DecodeFromHTML
-------------------

Decodes html text.

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

MBS( "Text.DecodeFromHTML"; Text { ; Options } ) 

**MBS**( **"Text.DecodeFromHTML";** /\* Decodes html text. \*/  
**$Text**; /\* The text you want to decode.e.g. "Gr&amp;uuml;&amp;szlig;e" \*/   
**$Options**) /\* Optional; Pass 1 to leave XML escapes unchanged.e.g. 0 \*/ 

(old name: String.DecodeFromHTML)

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Text | The text you want to decode. | "Gr&amp;uuml;&amp;szlig;e" |  |
| Options | Pass 1 to leave XML escapes unchanged. | 0 | Optional |

### Result

The decoded text.

### Description

Decodes html text.  
Removes escaping for special characters. e.g. converts "&amp;uuml;" to "ü".   
  
See also [EmailParser.HTMLToPlainText](EmailParserHTMLToPlainText.md).  
### Examples

Decode html text

 MBS ( "Text.DecodeFromHTML"; "Gr&amp;uuml;&amp;szlig;e" )  
<small>  
Example result: Grüße</small>Decode html entities, but leave xml entities unchanged:

 MBS ("Text.DecodeFromHTML"; "&lt;test&gt;&amp;auml;&amp;amp;&amp;lt;&lt;/test&gt;"; 1)  
<small>  
Example result: "&lt;test&gt;ä&amp;amp;&amp;lt;&lt;/test&gt;"</small>### See also

- [EmailParser.HTMLToPlainText](EmailParserHTMLToPlainText.md)
- [Text.DecodeFromBytes](TextDecodeFromBytes.md)
- [Text.DecodeFromHex](TextDecodeFromHex.md)
- [Text.DecodeFromURL](TextDecodeFromURL.md)
- [Text.DecodeFromXML](TextDecodeFromXML.md)
- [Text.EncodeToHTML](TextEncodeToHTML.md)

### Example Databases

- [Text functions/HTML Conversion with UTF32](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Text%20functions/HTML%20Conversion%20with%20UTF32.shtml#1Button305.0000000409.0000000332.0000000530.0000000LayoutObjectAnchor_)
- [Text functions/Text Styles](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Text%20functions/Text%20Styles.shtml#8ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 5.1pr6](https://www.mbsplugins.de/archive/2015-04-23/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 5.1pr1](https://www.mbsplugins.de/archive/2015-03-16/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 5.0pr7](https://www.mbsplugins.de/archive/2015-01-15/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin 2.4 release notes](https://www.mbsplugins.de/archive/2011-10-11/MBS_Filemaker_Plugin_24_releas/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.4pr8](https://www.mbsplugins.de/archive/2011-07-04/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 16th June 2022

  
[Text.DecodeFromBytes](TextDecodeFromBytes.md) - [Text.DecodeFromHex](TextDecodeFromHex.md)

[HTML Version](TextDecodeFromHTML.shtml)