I have a JavaScript variable:
var text = \"http://example.com\"
Text can be multiple links. How can I put \'\' around the variable string?<
var text = "\"http://example.com\"";
Whatever your text, to wrap it with ", you need to put them and escape inner ones with \. Above will result in:
"
\
"http://example.com"