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  

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

💬 Ask a question or report a problem