Well, there are a lot of useful infrastructure codes in Joomla. One of it has to do with email cloaking. Basically joomla has a way or writing out the entire email address via javascript… so that spiders (which are generally just scraping the HTML with no javascript interpretation will not be able to read the emails…)
It can all be done in one line… by leveraging on Joomla’s JHTML framework…
echo JHTML::_("email.cloak", "james@xtremax.com");





