@jmsstuff, The plugin seems to be working fine in my installation.
I thought this plugin would “hide” the email address from the user? Or am I misunderstanding what it does?
This kind of plugins try to hide the email address from bots/crawlers, not from the user.
How does it work?
The plugin replaces the email address with some javascript which injects the email address into the DOM of the page when run inside a browser.
Which means:
- Bots that crawl the bare HTML code of the page will not be able to see the email address. They will only see the javascript code.
Try to right-click the page and choose 'View page source'. You will not find the email address, but only javascript.
- When the bare HTML is parsed inside a browser which has javascript turned on, the email address is injected and becomes visible.
That means that hovering over it will reveal the address and the devtools will show it too.
As a side note:
The Shortcode plugin mentioned by @paulhibbitts, works in a different way. When it finds an email address marked with a shortcode, it replaces the individual characters of the email address with HTML entities in the generated HTML. The browser in turn shows entities as plain (readable) text without the need of javascript.
HTML entities could easily be reversed to plain text by a bot which is a bit more cleaver.
Apart from other differences, from the perspective of a page author, the disadvantage of the Shortcode plugin is that you have to mark an email address in the page manually: [safe-email][email protected][/safe-email]. The Antispam plugin automatically searches for email addresses in the page.