How can I take a string with lots of mixed double and single quotes:
curl -A 'Curl/2.5' -d '{"key":"$api_key","message":{"html":"<p><h1>Hello World</h1><\/p>"}'
and create a string variable such as:
$curl_command = "curl -A 'Curl/2.5' -d '{"key":"$api_key","message":{"html":"<p><h1>Hello World</h1><\/p>"}'"
Without returning "unexpected ' errors"? I want to avoid changing the original string.