• I facing the issues with below one.

    I had added HTML directly into the content field, for example:

    <a href="tel:234234">Call Us</a>

    Instead of saving only plain content. After saving the post, the browser throws the following console error:

    Uncaught SyntaxError: Unexpected identifier 'tel'

    (on post.php?post=3477&action=...).

    After investigating, it appears that the JavaScript parser is failing because the HTML content is being injected into JavaScript without being properly escaped or JSON encoded. As a result, the href="tel:..." attribute breaks the generated JavaScript, causing the syntax error.

    The content should either be properly escaped before being embedded in JavaScript or passed using JSON encoding so that HTML is handled safely.

    Image Url – https://drive.google.com/file/u/1/d/1C-BbojC_Fh2ByfmrGMrMAnQcmX0feFF1/view?usp=drive_open
    https://drive.google.com/file/d/1JBgaymdd_qXybeWpVlzRbzhhyZ6DRjuM/view

    • This topic was modified 2 weeks, 2 days ago by Praful Patel.

You must be logged in to reply to this topic.