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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
Statistic
FMM
Blog
EmailParser.HTMLToPlainText
Converts HTML to plain text.
Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
EmailParser | 5.3 | Yes | Yes | Yes | Yes | Yes |
MBS( "EmailParser.HTMLToPlainText"; HTML ) More
Parameters
Parameter | Description | Example |
---|---|---|
HTML | The HTML text to convert. | "<p>Hello World</p>" |
Result
Returns text or error.
Description
Converts HTML to plain text.This is used internally for HTML only emails.
Does not convert formatting. Just removes html tags, adds new line characters and translates html entities.
See also Text.DecodeFromHTML for just removing html entities.
See also
Blog Entries
Release notes
- Version 11.0
- Optimized EmailParser.HTMLToPlainText function to add new line after pre element and to skip space runs.
- Version 8.5
- Improved EmailParser.HTMLToPlainText to better filter JavaScript.
Created 24th September 2015, last changed 22nd August 2018
EmailParser.HTMLText - EmailParser.HasHeader
Feedback: Report problem or ask question.

Links
MBS FileMaker tutorial videos