-
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 ticket ‘Single quotes being swapped for double quotes by RankMath WordPress PHP snippets’ is closed to new replies.