Same issue here.
wpbs(document).on("click", "#calendarBatchUpdate", function(a) {
a.preventDefault();
var s = wpbs(".wpbs-calendar-data").attr("data-info");
s = s ? JSON.parse(s) : {}; // <-- this line errors
...
This is the content of the data-info
attribute.
{--DOUBLEQUOTE--2018--DOUBLEQUOTE--:{--DOUBLEQUOTE--1--DOUBLEQUOTE--:{--DOUBLEQUOTE--22--DOUBLEQUOTE--:--DOUBLEQUOTE--1--DOUBLEQUOTE--,--DOUBLEQUOTE--23--DOUBLEQUOTE--:--DOUBLEQUOTE--1--DOUBLEQUOTE--,--DOUBLEQUOTE--24--DOUBLEQUOTE--:--DOUBLEQUOTE--1--DOUBLEQUOTE--,--DOUBLEQUOTE--25--DOUBLEQUOTE--:--DOUBLEQUOTE--1--DOUBLEQUOTE--,--DOUBLEQUOTE--26--DOUBLEQUOTE--:--DOUBLEQUOTE--1--DOUBLEQUOTE--,--DOUBLEQUOTE--description-22--DOUBLEQUOTE--:--DOUBLEQUOTE--door Danny--DOUBLEQUOTE--,--DOUBLEQUOTE--description-23--DOUBLEQUOTE--:--DOUBLEQUOTE--door Danny--DOUBLEQUOTE--,--DOUBLEQUOTE--description-24--DOUBLEQUOTE--:--DOUBLEQUOTE--door Danny--DOUBLEQUOTE--,--DOUBLEQUOTE--description-25--DOUBLEQUOTE--:--DOUBLEQUOTE--door Danny--DOUBLEQUOTE--,--DOUBLEQUOTE--description-26--DOUBLEQUOTE--:--DOUBLEQUOTE--door Danny--DOUBLEQUOTE--},--DOUBLEQUOTE--2--DOUBLEQUOTE--:{--DOUBLEQUOTE--1--DOUBLEQUOTE--:--DOUBLEQUOTE--1--DOUBLEQUOTE--,--DOUBLEQUOTE--2--DOUBLEQUOTE--:--DOUBLEQUOTE--1--DOUBLEQUOTE--,--DOUBLEQUOTE--3--DOUBLEQUOTE--:--DOUBLEQUOTE--1--DOUBLEQUOTE--,--DOUBLEQUOTE--4--DOUBLEQUOTE--:--DOUBLEQUOTE--1--DOUBLEQUOTE--,--DOUBLEQUOTE--5--DOUBLEQUOTE--:--DOUBLEQUOTE--1--DOUBLEQUOTE--,--DOUBLEQUOTE--6--DOUBLEQUOTE--:--DOUBLEQUOTE--1--DOUBLEQUOTE--,--DOUBLEQUOTE--7--DOUBLEQUOTE--:--DOUBLEQUOTE--1--DOUBLEQUOTE--,--DOUBLEQUOTE--8--DOUBLEQUOTE--:--DOUBLEQUOTE--1--DOUBLEQUOTE--,--DOUBLEQUOTE--description-1--DOUBLEQUOTE--:--DOUBLEQUOTE--geboekt door Erik--DOUBLEQUOTE--,--DOUBLEQUOTE--description-2--DOUBLEQUOTE--:--DOUBLEQUOTE--geboekt door Erik--DOUBLEQUOTE--,--DOUBLEQUOTE--description-3--DOUBLEQUOTE--:--DOUBLEQUOTE--geboekt door Erik--DOUBLEQUOTE--,--DOUBLEQUOTE--description-4--DOUBLEQUOTE--:--DOUBLEQUOTE--geboekt door Erik--DOUBLEQUOTE--,--DOUBLEQUOTE--description-5--DOUBLEQUOTE--:--DOUBLEQUOTE--geboekt door Erik--DOUBLEQUOTE--,--DOUBLEQUOTE--description-6--DOUBLEQUOTE--:--DOUBLEQUOTE--geboekt door Erik--DOUBLEQUOTE--,--DOUBLEQUOTE--description-7--DOUBLEQUOTE--:--DOUBLEQUOTE--geboekt door Erik--DOUBLEQUOTE--,--DOUBLEQUOTE--description-8--DOUBLEQUOTE--:--DOUBLEQUOTE--geboekt door Erik--DOUBLEQUOTE--}}}
So it looks like you are somehow applying your own encoding on the attribute, which messes up the call to JSON.parse
.