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: 11.2   11.3   11.4   11.5   12.0   12.1   12.2   12.3   12.4   12.5    Statistic    FMM    Blog  


Creates HTML text for a given FileMaker formatted styled text.

Component Version macOS Windows Linux Server iOS SDK
Text 4.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Text.TextToHTML"; Text { ; Options } )   More


Parameter Description Example Flags
Text Formatted text to convert. "Hello World"
Options Available in MBS FileMaker Plugin 6.5 or newer.
The options number for html creation.
Add 1 for having no body around.
Add 2 to have no font names.
Add 4 to have no font sizes.
Add 8 to use strong instead of b tag for bold.
Add 16 to keep links in HTML to pass through <a..></a> tags. (new in 7.4).
1+2+4+8 Optional


Returns OK or error.


Creates HTML text for a given FileMaker formatted styled text.
Supports styles like bold, italic, underline, font size and text color. Other style features may be added in the future on demand.

See also Text.EncodeToHTML and GetAsCSS in FileMaker.

Version 11.2 adds support for strikethrough using s tag in html.
Version 12.0 adds superscript and subscript style for HTML.


Convert some text to HTML

MBS( "Text.TextToHTML"; "Hello World" )

Example result:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<html xmlns="" xml:lang="de">
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
<p>Hello World</p></body>

Convert some text to RTF

MBS( "Text.TextToRTF"; "Hello World" )

Example result:
Hello World

Convert without body/header:

MBS( "Text.TextToHTML"; "Hello World”; 1 )

Example result: <p>Hello World</p>

See also

Release notes

  • Version 12.2
    • Fixed a problem with high unicode character encodings for Text.TextToHTML function.
  • Version 12.0
  • Version 11.2
  • Version 7.4

Example Databases

Blog Entries

Created 7th September 2014, last changed 30th December 2021

Text.Styles - Text.TextToRTF

Feedback: Report problem or ask question.

Start Chat