if you have lots of text, a hidden input or textarea lets you store it without encoding. in a script file, you have to encode it.
i wrote a couple firefox batches to help.
just go to the link, click the "x" tab on the left.
then paste in your text, click "run", and click back on the "y" tab to view the results.
this
string quoter one converts text into this format:
this slash adder produces the format shown by canabeez.
the JSONString version is an old standby, though it makes it hard to read.