• Resolved benwhale

    (@benwhale)


    Hi, forgive me if this is a silly question. I’m still trying to get up to speed.

    I want to use antispambot() to hide an email address on a page of my website. You can see the result under Email. The php code used to generate the source <a href="mailto:[email protected]">[email protected]</a> tag is <a href="mailto:<?php echo antispambot(the_author_meta('user_email')); ?>"><?php echo antispambot(the_author_meta('user_email')); ?></a>.

    My understanding is that antispambot() should return a string with a number of randomly selected characters converted into HTML entities. Since the HTML source for this page doesn’t contain any such HTML entities, for this particular tag, I wonder if Exec-PHP is parsing the HTML entities into characters?

    For reference I have included two email addresses in purely HTML entities. To demonstrate, to myself, that the source should contain HTML entities. I have also turned off visual editor and wordpresses automated correcting of HTML tags. I am using the admin role and so have the necessary capabilities.

    Is this a problem with Exec-PHP? Have I done something stupid?

Viewing 1 replies (of 1 total)
  • Thread Starter benwhale

    (@benwhale)

    Since I have had no replies to this post and as I was only using Exec PHP for antispambot() I’ve gone with emOba for now.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Exec-PHP] antispambot() parsing problem?’ is closed to new replies.