Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Text.DecodeFromHTML

Decodes html text.

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

(old name: String.DecodeFromHTML)

Parameters

Parameter Description Example Flags
text The text you want to decode. "Grüß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 "ü" to "ü".

See also EmailParser.HTMLToPlainText.

Examples

Decode html text

MBS( "Text.DecodeFromHTML"; "Grüße" )

Example result: Grüße

Decode html entities, but leave xml entities unchanged:

MBS("Text.DecodeFromHTML"; "<test>&auml;&amp;&lt;</test>"; 1)

Example result: "<test>ä&amp;&lt;</test>"

See also

Example Databases

Blog Entries

This function checks for a license.

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


Text.DecodeFromBytes - Text.DecodeFromHex