I'm having big trouble figuring out hopw to solve this. I'm trying to make an small wysigwyg editor with image insert, and everything is working greate except one thing...

When using Internet Explorer it works fine and comes out like this:
<img src="myimage.jpg style="float:left">
But when using safari or Google Chrome the same comes out like this:
<img src="myimage.jpg style=&quot;float:left&quot;">
It have replaced the "" with &quot;.

I'm using this to insert the image after upload:
Code JavaScript:
var imageURL = returnValue;
var style = ' style="float:left"';
var imageURL = imageURL+style;
test.execCommand("insertimage", imageURL);

How do I solve this???

Thanks in advance :-)