encodeEmailAddress(string $addr) : string
Input: an email address, e.g. "firstname.lastname@example.org"
Output: the email address as a mailto link, with each character of the address encoded as either a decimal or hex entity, in the hopes of foiling most address harvesting spam bots. E.g.:
Based by a filter by Matthew Wickline, posted to BBEdit-Talk. With some optimizations by Milian Wolff.