I sent in the following array of dictionaries through Python to HTML:
[{'color': '#CFCFC4', 'day': 7}, {'color': '#FDFD96', 'day': 8}]
which then gets sent to a Javascript
function using the following line:
generateHTML("{{ colors }}");
However, while sending the array to Javascript, the apostrophes within the array are converted to '(;)
so that it looks like
[{'(;)day'(;): 7, '(;)color'(;): '(;)#CFCFC4'(;)}, {'(;)day'(;): 8, '(;)color'(;): '(;)#FDFD96'(;)}]
with the parentheses removed. How can I keep the original form of the array?