Double quotes single quotes handling problem
-
Hello,
I’m a fan of this plugin but I think there is an issue with the way quotes and double quotes are handled.
Here is the snippet I’m using :
<div style="text-align:center;margin:10px 0 20px;"> <a href="http://mydomain.com/somescript.php" onclick="yaCounterXXXXXX.reachGoal('ORDER'); return true;" rel="nofollow"><img src="http://mydomain.com/wp-content/uploads/Bouton.jpg"/></a> </div>
This snipper is configured to work as a SHORTCODE and it’s used in php like that :
<?php if(!is_page('130') && !is_page('153')) { echo do_shortcode('[mysnippetcode]'); } ?>
However this triggers a Parse error: syntax error, unexpected T_STRING
I suspect this is due to the single quote (used to log a click event in javascript) not being properly handled.
Any idea how I can use the plugin but have both double and single quote working ??
Thanks,
Cheers,
- The topic ‘Double quotes single quotes handling problem’ is closed to new replies.