• Resolved Nazar Hotsa

    (@bugnumber9)


    Looks like WPJM doesn’t “like” JS snippets in listing body since version 1.31.1
    Is there a neat way to change this behavior? We use some specific JS snippets in listings and those break after updating from 1.31.0 to 1.31.1

Viewing 5 replies - 1 through 5 (of 5 total)
  • kibus90

    (@kibus90)

    Hello
    Can you give an example?

    Because we can not help you with it without see it.

    Grettings.

    Thread Starter Nazar Hotsa

    (@bugnumber9)

    Here is an example of a snippet we have in listing content:

    <script>
    var str = "Thu, 07 Mar 2019 06:01:42 GMT";
    var res = str.slice(5, 17);
    var date = res;
    document.getElementById("demo").innerText = date;
    </script>

    In version 1.31.0 everything works as expected, however, once we update to 1.31.1 – the above snippet is getting displayed as plain text on the listing page.

    kibus90

    (@kibus90)

    Hello @bugnumber9 ,

    Where do you add your custom code?

    It is strange it is displaying as plain text.

    Grettings.

    Plugin Contributor Richard Archambault

    (@richardmtl)

    As kibus90 asked, how is this being added? Are you manually editing the jobs to add it?

    Plugin Contributor Richard Archambault

    (@richardmtl)

    I’m marking this thread as Resolved as it’s been more than a month since the last reply. If you still need help, please do reply again and mark the thread as Unresolved!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Allow JS in listing content’ is closed to new replies.