-
Notifications
You must be signed in to change notification settings - Fork 1
HtmlDecode
Maarten Hilferink edited this page Apr 8, 2026
·
1 revision
String functions HtmlDecode
The HtmlDecode function decodes HTML-encoded strings back to their original form.
HtmlDecode(strings: E->String) -> E->String
Converts HTML-encoded strings back to their original format by replacing HTML entity references with the corresponding characters:
| Entity | Character |
|---|---|
< |
< |
> |
> |
& |
& |
" |
" |
' |
' |
|
(space) |
Also decodes numeric character references like < and <.
| argument | description | type |
|---|---|---|
| strings | HTML-encoded strings to decode | E->String |
Time complexity: O(n × L) where n is the number of strings and L is the average string length.
Decoded strings are typically slightly shorter than input strings.
unit<uint32> HtmlContent: nrofrows = 3;
attribute<String> encoded (HtmlContent) := union_data(HtmlContent,
'Hello <world>',
'A & B',
'Quote: "test"'
);
attribute<String> decoded (HtmlContent) := HtmlDecode(encoded);
// decoded = {'Hello <world>', 'A & B', 'Quote: "test"'}
- Processing data extracted from HTML sources
- Converting HTML content to plain text
- Cleaning up HTML entity artifacts in imported data
- HtmlEncode - reverse operation
- UrlDecode - for URL parameters
- String functions
7.0
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.