0👍
take a look at this escaping quotes: Escaping quotation marks in PHP
if that doesnt work, you could always do a str.replace after the fact and properly convert it back
0👍
You are setting the dynamic_month variable on the PHP side, but using it in Javascript; you’ll need to replace the:
labels: {{ dynamic_month }},
With
labels: {<?php echo $dynamic_month ?>},
HTH
Source:stackexchange.com