How to pass " instead of "

I’m trying to pass data from one page to another and insert it into a textfield, and works like a charm except one thing…

var style = ’ style="float:left’;

Becomes ->

var style = ’ style="float:left’;

How can I avoid this?

insert it as a value and not as innerHTML,which converts entities

As it is now I’m inserting it like this…

execCommand(cmd, false, value);

How do I convert that?