It looks like that the email address inside tables are not being encoded. How are you creating those tables? Are you using a plugin, or are they in your template files?
The tables are created without plugin or template files, just coded as:
<table>
<tr><td><i class=”icon-guest”></i></td><td>Person name</td></tr>
<tr><td><i class=”icon-mail”></i></td><td>[email protected]</td></tr>
<tr><td><i class=”icon-call”></i></td><td>+333312000000</td></tr>
</table>
Any idea?
Could you paste the exact code in ticks, so it doesn’t get converted by the forum here?
Sure:
<table class="no-style">
<tr><td><i class="icon-guest"></i></td><td>Person name</td></tr>
<tr><td><i class="icon-mail"></i></td><td><a href="mailto:[email protected]">[email protected]</a></td></tr>
<tr><td><i class="icon-call"></i></td><td><a href="tel:https://ww.wp.xz.cn/support/topic/+331000000">+33 (0)1 00 00 00</a></td></tr>
</table>
I just pasted the exact code into the WordPress editor and it gets encoded correctly.
Where exactly is your table located?
Actually, I just created a test page.
With only: <a href="mailto:[email protected]">[email protected]</a> And it is still not encoded.
The only explanation for that could be that either the plugin is not active, or you theme doesn’t use the the_content() method to display the page contents. What theme are you using?
I already checked: the plugin is activated.
I use BeTheme. But I dont’t think it’s linked as it used to work and I used BeTheme since the beginning.
I can’t have a closer look at your theme, because it’s paid.
If the plugin used to work and now doesn’t work anymore, something in your theme must have changed, because in other themes email addresses are encoded without an issue, even inside HTML tables.
Please ask the authors of your theme for further assistance.
I asked the theme support who told me that “if the content is built with WP editor, then we use the_content() function. But if you ask about Muffin Builder or VC, both tools have own methods to display the content.”
So I guess I will have to refer to FAQ “How can I filter other parts of my site?”?
I guess you’re using that builder then, eh? If you do, then yes, you gotta filter the content manually.
I tried to extend to the the_post() content. However it doesn’t work.
Is there an equivalent to eae_encode_emails() in JS?
No, the plugin is purely PHP based. You got to figure out how to filter the content that your theme is returning. I recommend you ask your web developer to have a closer look at your theme.