• Adam

    (@theadam123)


    Using the plugin with the following settings
    – automatically the best method (including javascript)
    – plain emails by converting them to mailto links
    is breaking the containing html tag, in my case <p> which causes unexpected results. The final HTML looks like this, with the part after the email cut out of the <p> tag.

    <p>Anfra-gen zum Daten-schutz und zur Ver-wen-dung Ihrer per-so-n-en-be-zo-ge-nen Dat-en k?nnen aber an <a href="javascript:;" data-enc-email="fnqnff[at]nfqf.fqr" class="mail-link" data-wpel-link="ignore"><span id="eeb-758076-766337">[email protected]</span><script type="text/javascript">(function(){var ml="4sea.0d%",mi="13631170531614162",o="";for(var j=0,l=mi.length;j<l;j++){o+=ml.charAt(mi.charCodeAt(j)-48);}document.getElementById("eeb-758076-766337").innerHTML = decodeURIComponent(o);}());</script></a></p>
    <noscript>*pro-tect-ed email*</noscript>
     fol-gende E?Mail-Adresse gesendet wer-den und wer-den von uns nach den geset-zlichen Vor-gaben behan-delt: 

    This causes my text to look like this: https://paste.pics/087040ef3938929d3d8e98df2e37db5d

    Is there a quick fix for this? When using the method without JS, everything is working as expected.

    • This topic was modified 1 year, 11 months ago by Adam. Reason: saved post before finishing the content by accident
    • This topic was modified 1 year, 11 months ago by Adam. Reason: image link didnt work
Viewing 1 replies (of 1 total)
  • Plugin Author Ironikus

    (@ironikus)

    Hey @theadam123 – Thanks for reaching out!

    I’ve tried to reproduce the issue but from my end paragraphs are displayed correctly (Anchor tags are allowed within paragraphs so that should not matter).

    I assume it has something to do with the way your theme (or plugin) loads the content. Can you share some more info on your setup?

    I will then look further into it.

Viewing 1 replies (of 1 total)
  • The topic ‘JS Method breakts html tag’ is closed to new replies.