Possible Duplicates:
Escape single quotes in jQuery or JavaScript
Escape dynamic strings in JavaScript
How do you assign a string, in this case it's HTML code, to a JavaScript / jQuery variable?
And how do you escape double quotes and single quotes properly?
var html = ""; // <-- HTML goes here