Support » Plugin: Email Encoder - Protect Email Addresses » Custom Javascript not allowed with Google AMP

  • Resolved TableauxAdmin


    Custom javascript does not work with Google AMP. This is happening on three pages where Email Encoder is used…

    <script type=”text/javascript”>(function(){var ml=””,mi=”179?:0<8;32@;56=4?>”,o=””;for(var j=0,l=mi.length;j<l;j++){o+=ml.charAt(mi.charCodeAt(j)-48);}document.getElementById(“eeb-608628-801947”).innerHTML = decodeURIComponent(o);}());</script><noscript>*protected email*</noscript><br>Phone: +1 512 926 6346<br>Fax: +1 512 926 6347</p>

    Any way to fix this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ironikus


    Hey @tableauxadmin – thank you a lot for your message!
    Can you tell me if you use a shortcode for encoding this content?
    Within the settings of our plugin at Settings -> Email Encoder – you can choose the option to protect your emails without javascript. In that case, we use certain CSS protections, as well as HTML entity encoding, so your emails will still be protected.
    Hope this helps.
    In case that does not solve the issue feel free to let me know and we will find another solution.

    No shortcode. We use Page Builder by SiteOrigin to build pages in wordpress if that makes a difference. I will try “automatically the best method (excluding javascript)” and see what happens.


    Plugin Author Ironikus


    sure, just let me know if you have further questions @tableauxadmin

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Javascript not allowed with Google AMP’ is closed to new replies.