I have a JavaScript variable:
var text = \"http://example.com\"
Text can be multiple links. How can I put \'\' around the variable string?<
I think, the best and easy way for you, to put value inside quotes is:
JSON.stringify(variable or value)