How tos

How to encode a mail with JavaScript:

 | script mail encodedmail |
mail := 'tudor@tudorgirba.com'.
encodedmail := (('<a href="mailto:',mail,'">',mail,'</a>')
asOrderedCollection collect: [:each | each asInteger printString]) join: ', '.
script := '<script>document.write(String.fromCharCode(', encodedmail,'));</script>'.
script