| Components | All | New | MacOS | Windows | Linux | iOS | ||||
| Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old | |
Clipboard.GetHTMLText
Queries styled text from clipboard as HTML.
| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
| Clipboard | 6.0 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |
MBS( "Clipboard.GetHTMLText" { ; Encoding } ) More
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| Encoding | The text encoding for result. Default is UTF-8. Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ. |
UTF8 | Optional |
Result
Returns html text or error.
Description
Queries styled text from clipboard as HTML.For server this will query the clipboard of the user account running the server app on the server computer and not the clipboard of any client.
For macOS, if a webarchive is on the clipboard, the plugin will pick data from that webarchive. Safari puts a Webarchive on the clipboard if you do a copy to the clipboard. If text encoding is UTF-8, the plugin will automatically use this encoding as default unless you overwrite it.
See also
- Clipboard.GetRTFText
- Clipboard.GetStyledText
- Clipboard.GetText
- Clipboard.SetHTMLText
- Clipboard.SetRTFText
- Clipboard.SetText
Release notes
- Version 16.6
- Improved Clipboard.GetHTMLText and Clipboard.SetHTMLText on Windows to wrap html properly. Now defaults to UTF-8 for all platforms.
- Version 14.1
- Improved Clipboard.GetRTFText, Clipboard.GetHTMLText, Clipboard.GetStyledText and Clipboard_GetText for Windows to strip out an ending NULL character if the other application added it to the clipboard text.
- Version 8.2
- Changed Clipboard.GetHTMLText to convert styled text to html if you ask for HTML and clipboard has styled text.
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 14.1pr4
- MBS FileMaker Plugin, version 8.2pr7
- MBS FileMaker Plugin 6.0 for OS X/Windows
- MBS FileMaker Plugin, version 6.0pr6
This function checks for a license.
Created 7th January 2016, last changed 21st November 2026
MarkDown version: ClipboardGetHTMLText.md