Is it possible to add a class to email.cloak?

by iamrobert   Last Updated March 11, 2018 17:10 PM

The documentation doesn't give an example of adding classes: https://docs.joomla.org/How_to_cloak_email_addresses

<?php echo JHtml::_('email.cloak', '[email protected]');?>

So is it possible to do this in your template index.php file?

The output should be:

<a href="mailto:[email protected]" class="no-transition icon-mail">[email protected]</a>
Tags : joomla-3.x jhtml


Related Questions




What does JHtml::_ do?

Updated June 18, 2015 23:04 PM


Ads code show blank space or not showing at all

Updated December 03, 2016 08:04 AM