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:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Encodes text as html.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Text | 2.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
(old name: String.EncodeToHTML)
Parameter | Description | Example | Flags |
---|---|---|---|
text | The text you want to encode. | "Grüße" | |
mode | Default 0 for using named entities. Pass 1 for decimal and 2 for hex encoded numbers instead. Add 8 to encode all characters (new in plugin version 8.4) |
0 | Optional |
The encoded text.
Encode text as html
MBS( "Text.EncodeToHTML"; "Grüße" )
Example result: "Grüße"
Encode smileys:
MBS("Text.EncodeToHTML"; "😀😁😂😃")
Example result: "😀😁😂😃"
Encode ä three ways:
MBS( "Text.EncodeToHTML"; "ä"; 0) & ¶ &
MBS( "Text.EncodeToHTML"; "ä"; 1) & ¶ &
MBS( "Text.EncodeToHTML"; "ä"; 2)
Encode normal and all with decimal or hexadecimal:
MBS("Text.EncodeToHTML"; "Hello World ä"; 0) & ¶ &
MBS("Text.EncodeToHTML"; "Hello World ä"; 8) & ¶ &
MBS("Text.EncodeToHTML"; "Hello World ä"; 8+2)
Example result:
"Hello World ä
Hello World ä
Hello World ä"
Encode some fruits:
MBS( "Text.EncodeToHTML"; "🍎 🍓 🍒" )
Example result: 🍎 🍓 🍒
This function checks for a license.
Created 18th August 2014, last changed 31st January 2023