// Utilities for HTML manipulation. HTMLEncode[line] := { line =~ %s/&/&/g; line =~ %s//>/g; return line } // Decodes the hex-encoded parts of an argument. URLDecode[arg] := { return arg =~ %s/%([0-9a-fA-F]{2})/char[parseInt[$1, 16]]/ge } // Make the tags for an HTML