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
var html = "<head><title>Hello in \"quotes\"<\/title><\/head>"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With