WP converting backslash in code to html entity
-
Hi,
I’m running a Genesis child theme.
I have everything set up – the installation was smooth and the plug in looks great – but when I publish the page with the Google experiment code on, a backslash is being converted to an HTML entity and the script is failing validation with the error message:
“Original:Possibly broken experiment code found here: line:5, column:1”
The offending part is this. Here’s the original:
'" type="text/javascript" charset="utf-8"><\/sc'+'ript>')})();Here’s the same line after being published:
'" type="text/javascript" charset="utf-8"><\/sc'+'ript>')})();Ah. Unfortunately the htmlentity is being converted back by the browser or forum software. But hopefully you get the idea.
Here’s a link to the original of the A/B experiment:
http://creativetriggers.com/landing-page/Any idea on how I can stop WP converting the backslash? I’ve tried publishing whilst in text editor but to no avail.
Thanks
Paul
The topic ‘WP converting backslash in code to html entity’ is closed to new replies.