suve

awful: function: html-decode

Ddeclaration

string :html-decode ( string $HTML )
string :decodeHTML ( string $HTML )

Summary

Takes an HTML-embedded string and replaces all character references present (both numerical and entity references are taken into account) with their respective UTF-8 codepoints.

Example

# Duuuh
:writeln :html-decode s'<span>Hello!</span>'

wikipage modified on 2014/0601/2317