Quantcast
Viewing latest article 29
Browse Latest Browse All 8245

nosilver4u on "antispambot no longer working in a shortcode"

Or are the browsers just too clever now, and they don't show the obfuscated code?

Here's what I've got:

function display_my_email() {
        return '<strong>' . antispambot( 'support@example.com' ) . '</strong>';
}
add_shortcode( 'display_my_email', 'display_my_email' );

I found a post that mentioned the Chrome dev tools will not show the scrambled version, so I did a view source in both Chrome and Firefox, and the email is plaintext, not encoded at all. Am I missing something here?

EDIT: you can see it in action near the top of the page: https://ewww.io/contact-us/


Viewing latest article 29
Browse Latest Browse All 8245

Trending Articles