Title: Getting odd encoding results
Last modified: August 28, 2020

---

# Getting odd encoding results

 *  Resolved [sharpenedpixels](https://wordpress.org/support/users/sharpenedpixels/)
 * (@sharpenedpixels)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/getting-odd-encoding-results/)
 * Hi,
 * I have just started testing out your plugin. I currently manually encode all 
   emails across my websites, but finding it harder to manage, so I decided to test
   out an email encoder plugin and yours seems to be the best at the moment. However,
   I am seeing some odd results.
 * I use Divi as my theme and have created two test pages, one with and one without
   Divi builder used to create the page. I have named the pages using a plain html
   email address and also included a plain html email address in the main content
   area. As well as this I have added an email to the menu and a widget, just to
   test all areas as much as possible. I also have a home page that has no email
   in the content area.
 * I have checked to display advanced settings within the settings for Email Encoder.
   In the advanced settings I am using ‘full-page scan’ and ‘automatically the best
   method (excluding javascript)’. I have checked under ‘Protect…’ – ‘RSS feed’ (
   this was already checked), ‘plain emails by converting them to mailto links’ 
   and ‘mailto links without CSS direction’. All other advanced settings are left
   untouched.
 * So the problem I am seeing, is that some of the pages are encoding differently
   to the others and can’t understand why. So the home page is changing all plain
   html emails in the widget and menu to mailto links and encoding them, also the
   page created using the Divi builder is also encoding the same way and converting
   the plain html emails to mailto links. But, the page that I created without using
   the Divi builder (which is exactly the same as the home page but has an email
   in the main content field), is not converting the plain emails to mailto links,
   and it is also encoding them completely different to the other two pages. But,
   they are being encoded which is good. I can’t understand how the whole process
   is different from one page to another.
 * Can you clear this up at all or is there a major issue at play that you hadn’t
   even realised??
 * Look forward to your response.

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [Ironikus](https://wordpress.org/support/users/ironikus/)
 * (@ironikus)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/getting-odd-encoding-results/#post-13331598)
 * Hey [@sharpenedpixels](https://wordpress.org/support/users/sharpenedpixels/) –
   Thank you a lot for your message, as well as all of the additional details and
   tests, really appreciate that!
 * Indeed, emails encode differently in certain circumstances which is a feature
   and required to provide protection even for emails that usually can’t be encoded
   or break the site when you do so.
    For example do we soft-encode emails that 
   are within attributes. E.g.: <div user-email=”jondoe@test.email”>Some text</div
   > This will encode it using entity encoding to provide still security while not
   damaging the logic of the website.
 * To clarify what exactly is encoded and how, we created a help file within our
   documentation: [https://ironikus.com/docs/knowledge-base/what-will-be-protected-2/](https://ironikus.com/docs/knowledge-base/what-will-be-protected-2/)
 * Since you do not use the javascript encoding features, which include kind of 
   a round-robin mechanism that encodes the email addresses using different javascript
   methods, and you use the exact same HTML on two different sites, the encoding
   should not differ too much between both of them.
    If you could share a link to
   this site with me including an explanation which emails you feel are oddly encoded,
   I’m happy to take a further look at it.
 * In case yous site is confidential, you can also reach out to us using our contact
   form: [https://ironikus.com/contact/](https://ironikus.com/contact/)
 * I hope this helps so far. If you have any additional questions, feel free to 
   reach out at any time. 🙂
 *  Thread Starter [sharpenedpixels](https://wordpress.org/support/users/sharpenedpixels/)
 * (@sharpenedpixels)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/getting-odd-encoding-results/#post-13332511)
 * Hi [@ironikus](https://wordpress.org/support/users/ironikus/),
 * Thanks for your response and clearing that up. Still I’m unsure why one page 
   hasn’t applied mailto links like the other two. You can see the three examples
   below with explainations:
 * [https://plugintest.sharpenedpixels.co.uk/](https://plugintest.sharpenedpixels.co.uk/)
   
   Uses the standard WordPress editor but has no content in the text editor field.
   Encoding emails fine and adding mailto links to all email addresses.
 * [https://plugintest.sharpenedpixels.co.uk/test-page-without-divi/](https://plugintest.sharpenedpixels.co.uk/test-page-without-divi/)
   
   Uses the standard WordPress editor and has email and phone number with encode
   shortcode in the text editor field. Emails are encoded, but use a different technique
   to the homepage and the emails are not being converted to mailto links.
 * [https://plugintest.sharpenedpixels.co.uk/test-page-with-divi/](https://plugintest.sharpenedpixels.co.uk/test-page-with-divi/)
   
   Uses the Divi builder to add content. I have used an array of different solutions
   including ACF fields populating the sections with the same content throughout.
   Emails are encoded fine and also added mailto links.
 * **NOTE:** I tested adding content to the homepage content field, to see if it
   was affected. I tried adding the same content from the page [https://plugintest.sharpenedpixels.co.uk/test-page-without-divi/](https://plugintest.sharpenedpixels.co.uk/test-page-without-divi/),
   which was this:
 *     ```
       test@domain.co.uk
   
       [eeb_protect_content]<a href="tel:+441234567890">01234 567 890</a>[/eeb_protect_content]
       ```
   
 * This then caused the page to not convert emails to mailto links, although, like
   the other page, the emails were encoded. Very odd.
 * I also tested adding this to the content field:
 * `test@domain.co.uk`
 * Again, this caused the same problem.
 * I also tested adding this to the content field:
 * `[eeb_protect_content]<a href="tel:+441234567890">01234 567 890</a>[/eeb_protect_content]`
 * But it was fine and all emails were encoded and included adding mailto links.
   So seems there is an issue when an email is added to the content field.
 * If you need anymore info, please let me know. I can setup more pages with examples
   if needed. I’d love this to get sorted as this will be a really useful plugin.
 * I look forward to your response.
 *  [Ironikus](https://wordpress.org/support/users/ironikus/)
 * (@ironikus)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/getting-odd-encoding-results/#post-13349914)
 * Hey [@sharpenedpixels](https://wordpress.org/support/users/sharpenedpixels/) –
   Thank you very much for your detailed message and all the added information.
   
   I checked on that these days more in details and I can confirm that the shortcode`[
   eeb_protect_content]` does not include a feature for turning emails into mailto
   links. I have added that feature to our list for the next version launch, so 
   you can expect it to be fixed with the next release. for now, you can simply 
   include the full mailto link into the shortcode, which will also cause to display
   the email as a mailto link. In case you have any further questions in the meantime,
   I’m happy to help. 🙂
 *  Thread Starter [sharpenedpixels](https://wordpress.org/support/users/sharpenedpixels/)
 * (@sharpenedpixels)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/getting-odd-encoding-results/#post-13350005)
 * Hi [@ironikus](https://wordpress.org/support/users/ironikus/),
 * I feel you may have completely misunderstood the problem here, as your answer
   is confusing and doesn’t seem to answer my problem.
 * The shortcode `[eeb_protect_content]` is for protecting phone numbers, is it 
   not? So I can’t understand why you have said it doesn’t turn emails into mailto
   links. This is not the issue.
 * The issue is as explained above that some emails on some of the pages are not
   being converted into mailto links and some pages are. I have not used any shortcodes
   to wrap around the emails, just typed in plain text emails like this `email@domain.
   com` in the content areas that I have tested across the website.
 * I was under the impression that if I enabled the ‘convert emails into mailto 
   links’ setting in the advanced settings section, then this would automatically
   convert all plain text emails across the website without the need to add any 
   shortcode or anything. And, it works flawlessly on most pages, but just not the
   one page that had the email typed into the main content field.
 * If it would help, I am happy to do a screenshare with you and call on the computer
   to explain fully. That way it may be easy to explain the issue, as I feel I may
   not have explained it well enough previously.
 *  [Ironikus](https://wordpress.org/support/users/ironikus/)
 * (@ironikus)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/getting-odd-encoding-results/#post-13350092)
 * Hey [@sharpenedpixels](https://wordpress.org/support/users/sharpenedpixels/) –
   thank you for the clarification – I really might got confused there.
    The short
   code allows you not only to protect phone numbers, but any content you add to
   it.
 * Since I understood now that you don’t use any shortcodes, I’ll go ahead and make
   some further tests later on to figure out where this might come from.
    It’ll 
   be also great if you could provide us with a demo account so that we can take
   a closer look at the setup on your staging site. To do that, it’ll be great if
   you can simply drop us a message at [https://ironikus.com/contact](https://ironikus.com/contact)–
   this will create a ticket which I will take over to continue the testing. Thank
   you very much for your time and the explanations.
 *  Thread Starter [sharpenedpixels](https://wordpress.org/support/users/sharpenedpixels/)
 * (@sharpenedpixels)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/getting-odd-encoding-results/#post-13350492)
 * I have just sent a message via your form on [https://ironikus.com/contact](https://ironikus.com/contact)
 * Kind regards,
    Sharpened Pixels
 *  [Ironikus](https://wordpress.org/support/users/ironikus/)
 * (@ironikus)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/getting-odd-encoding-results/#post-13488333)
 * Hey [@sharpenedpixels](https://wordpress.org/support/users/sharpenedpixels/) –
   I also took a closer look in regards to this issue, which I was able to create
   a temporary fix for.
    Before adding it to our next release, I’d like to get your
   feedback on it if it solves your mentioned issue from your end as well. Therefore,
   I created a temporary version for you which includes a fix for it. You can download
   it via the following link: [https://www.dropbox.com/s/vnk9diqql98uxog/email-encoder-bundle-sharpenedpixels.zip?dl=1](https://www.dropbox.com/s/vnk9diqql98uxog/email-encoder-bundle-sharpenedpixels.zip?dl=1)
 * If you have any additional questions upfront, feel free to let me know at any
   time.
    Looking forward to your feedback. 🙂
 *  Thread Starter [sharpenedpixels](https://wordpress.org/support/users/sharpenedpixels/)
 * (@sharpenedpixels)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/getting-odd-encoding-results/#post-13489614)
 * Hi [@ironikus](https://wordpress.org/support/users/ironikus/),
 * Thanks for investigating this further.
 * I downloaded the new zip and installed it to test and it seems to be working 
   as expected.
 * I created 4 pages and all are encoding the emails in some way and converting 
   them to mailto links. Also, any email displayed in the meta title and/or description
   are being encoded as well, which is perfect.
 * See the 4 pages below:
 * [https://plugintest.sharpenedpixels.co.uk/](https://plugintest.sharpenedpixels.co.uk/)
 * [https://plugintest.sharpenedpixels.co.uk/test-page-without-divi/](https://plugintest.sharpenedpixels.co.uk/test-page-without-divi/)
 * [https://plugintest.sharpenedpixels.co.uk/test-page-without-divi-no-email-in-title/](https://plugintest.sharpenedpixels.co.uk/test-page-without-divi-no-email-in-title/)
 * [https://plugintest.sharpenedpixels.co.uk/test-page-with-divi/](https://plugintest.sharpenedpixels.co.uk/test-page-with-divi/)
 * Thanks very much.
 *  [Ironikus](https://wordpress.org/support/users/ironikus/)
 * (@ironikus)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/getting-odd-encoding-results/#post-13489705)
 * Hey [@sharpenedpixels](https://wordpress.org/support/users/sharpenedpixels/) –
   That’s great, I will add the feature then to our next version.
    Thanks a lot 
   for your tests.
 *  Thread Starter [sharpenedpixels](https://wordpress.org/support/users/sharpenedpixels/)
 * (@sharpenedpixels)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/getting-odd-encoding-results/#post-13489712)
 * No problem at all [@ironikus](https://wordpress.org/support/users/ironikus/) 
   =)
 *  [Ironikus](https://wordpress.org/support/users/ironikus/)
 * (@ironikus)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/getting-odd-encoding-results/#post-13519859)
 * Hey [@sharpenedpixels](https://wordpress.org/support/users/sharpenedpixels/) –
   I hope you are doing well.
    Just wanted to notify you about the new version we
   have just launched. It includes the hereby discussed fix as well. If you have
   any additional questions, feel free to let me know. 🙂
 *  Thread Starter [sharpenedpixels](https://wordpress.org/support/users/sharpenedpixels/)
 * (@sharpenedpixels)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/getting-odd-encoding-results/#post-13520141)
 * Hi [@ironikus](https://wordpress.org/support/users/ironikus/),
 * Thank you for letting me know. I have just updated the plugin to the latest. 
   I’ll let you know if I find any other bugs.
 * Thanks very much for all your help.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Getting odd encoding results’ is closed to new replies.

 * ![](https://ps.w.org/email-encoder-bundle/assets/icon-256x256.png?rev=2056506)
 * [Email Encoder - Protect Email Addresses and Phone Numbers](https://wordpress.org/plugins/email-encoder-bundle/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-encoder-bundle/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-encoder-bundle/)
 * [Active Topics](https://wordpress.org/support/plugin/email-encoder-bundle/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-encoder-bundle/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-encoder-bundle/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [sharpenedpixels](https://wordpress.org/support/users/sharpenedpixels/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/getting-odd-encoding-results/#post-13520141)
 * Status: resolved