title: Scripting a .write script containing HTML tags using only double quotes
body: <p>I have a tricky situation where one set of rules conflicts with another over specifications of banners. </p>
  
  <p>One spec details that single quotes are not allowed, and the other has a script which is <em>essential</em> to the banner. Without the script, there is no point serving the banner in the first place. </p>
  
  <p>So the question is, is there a way to write this script using <strong>only</strong> double quotes? </p>
  
  <pre><code>&lt;script&gt;
      document.write('&lt;script src="' + (window.API_URL || 'http://example.com/' + Math.random()) + '"&gt;&lt;\/script&gt;');
  &lt;/script&gt;
  </code></pre>