hi ...
this is desired behaviour of javascript ... have a look at the following example, that works th normal way:
now we put a single quote in:
it will not work ... why? the single quote terminates the code after:
so it cannot work. it is the same in your case ... the js-statement would be terminated with the single-quote in your result-string ... you may resolve it with:
that means you have to escape the quote here ... and it is working again.
kind regards