I have a JavaScript variable:
var text = \"http://example.com\"
Text can be multiple links. How can I put \'\' around the variable string?<
Try:
var text = "'" + "http://example.com" + "'";