I have a JavaScript variable:
var text = \"http://example.com\"
Text can be multiple links. How can I put \'\' around the variable string?<
This can be one of several solutions:
var text = "http://example.com"; JSON.stringify(text).replace('\"', '\"\'').replace(/.$/, '\'"')