However examining the code which executes when
printString is called I
noticed that it also escapes any quote marks in the string passed. On
reflection I found the method asJavascript which appears to do the right
thing. I've removed my extra speech marks, changed greaseString to
asJavascript, and tested and all appears functional again. Have I found the
right method?
Yes, #asJavascript is the right method.
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch