Single quotes being swapped for double quotes by RankMath WordPress PHP snippets

#648752
  • Resolved Anonymous
    Rank Math free

    We wish to start using RankMath on our WordPress website but it seems to interfere with our use of PHP code snippets in WordPress. Installing RankMath seems to make the HTML/JavaScript code generated by snippets go though a ‘swap single quote marks for double quote marks’ which is causing issues when the code snippet has created a JSON data array in the script tags and within this data there is a single quote mark (which originally would have been escaped by a forward slash). This causes the JSON to be incorrectly terminated causing the page to fail.
    Can I ask why RankMath is swapping all single quotes to double please?
    The original API data
    Data after RankMath swap

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for your query, and we are so sorry about the trouble this must have caused.

    Please share more details and steps to replicate the issue so we can reproduce it on our end and suggest a solution.

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Single quotes being swapped for double quotes by RankMath WordPress PHP snippets’ is closed to new replies.