Codex tools: Log in
Converts email addresses characters to HTML entities to block spam bots.
<?php antispambot( $emailaddy, $mailto ) ?>
<?php echo antispambot("email@example.com"); ?>
This will output the email like this in the HTML:
And in their browser, people will still see it right:
antispambot() is located in