web::htmlify ?-options? text
Options: -numeric.
Returns HTML-compliant text with HTML encoded entities in mnemonic form (e.g. ä) or in numeric form (e.g. ä) if the option -numeric is specified. Multibyte characters are encoded as &#<numeric>;.
web::dehtmlify text
Removes all HTML-tags from text and translates all HTML entities to their corresponding characters (also handles encoded multibyte characters encoded with &#<numeric>;).
web::list2uri list
web::uri2list string
Convert between an even-sized key/value list and a query
string. web::list2uri uri-encodes keys and
values and returns
k1=v1&k2=v2;
it raises an error for lists with an odd number of
elements. web::uri2list is the inverse and
always returns a list with an even number of elements.
Example 16. web::htmlify
% web::htmlify < < % web::htmlify -numeric < < % web::dehtmlify "< <" < < % web::uriencode "Hello, world!" Hello%2c+world%21 % web::uridecode "Hello%2c+world%21" Hello, world! %