• The block didn’t display and I got the following script related message in the Chrome console:

    VM28360:1 Uncaught SyntaxError: Bad control character in string literal in JSON at position 671
    at JSON.parse ()
    at m (wpp.min.js?ver=6.1.1:5:497)
    at HTMLDocument. (wpp.min.js?ver=6.1.1:7:19)

    The problem is related to newlines in the JSON encoded strings. It can be fixed by replacing newlines by \\n in wpp.min.js:

    JSON.parse(c.textContent.replaceAll(“\n”,”\\n”))

    • This topic was modified 3 years, 2 months ago by nyrup.
    • This topic was modified 3 years, 2 months ago by nyrup.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Javascript exception: Uncaught syntax error’ is closed to new replies.