Support » Plugin: CM Tooltip Glossary » Cut script in content if it is the first tag

  • Resolved uginroot

    (@uginroot)


    If I create a post with a script as the first tag, then your plugin will cut it.
    Excample:
    Link: https://tasinhorjun.org/2020/02/20/test-yalta-bilen-bagt/
    Post content:
    <script>(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.src='https://embed.ex.co/sdk.js';fjs.parentNode.insertBefore(js,fjs);}(document,'script','playbuzz-sdk'));</script><div class="playbuzz" data-id="b5c61cc5-a3f9-42fe-b6ef-525aada64c9d" data-show-share="false" data-show-info="false"></div>

    Normal work:
    Link: https://tasinhorjun.org/2020/02/19/test-gonurjanyn-hekayasy/
    Post content:
    <p>Gadyrly okyjy, soraglara tapawutly jogap berilip biliner. Kartlara basyp jogaplary g&ouml;r&uuml;p bilersiň. Kitap okamany dowam et!</p><script>(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.src='https://embed.ex.co/sdk.js';fjs.parentNode.insertBefore(js,fjs);}(document,'script','playbuzz-sdk'));</script><div class="playbuzz" data-id="94443a6a-16c0-4486-8ff7-7501127e909b" data-show-share="false" data-show-info="false"></div>

    Fix it please.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Cut script in content if it is the first tag’ is closed to new replies.