title: Concatenate HTML String
body: <p>I want to concatenate a HTML string. I'm building a modifiable url (not for the page, but for an internal api).</p>
  
  <p>I'm using Django [if that helps]</p>
  
  <pre><code>urldata = "http://www.twitch.tv/widgets/live_embed_player.swf?channel=" + {{specificMedia.channel}}
  </code></pre>
  
  <p>I'm trying to add the first section which is a string to the "{{specificMedia.channel}}" which is also a string. and set it to a object variable</p>
  
  <pre><code>&lt;object type="application/x-shockwave-flash" 
       data= urldata
  </code></pre>
  
  <p>Is this possible without using Javascript?</p>
  
  <p>If I have to use javascript, how do I access a javascript string variable outside of the script?</p>
  
  <p>thanks</p>
  
  <p><strong>REVISED QUESTION</strong>
  So, I now know that it is not possible in HTML, but I want to simulate an HTML string. How do I do this in java script?</p>
  
  <p>I want to make:
      data = 'someRandomString'</p>
  
  <p>could I do something like?</p>
  
  <pre><code>&lt;script&gt; var z = 'someRandomString'; &lt;/script&gt;
  
  data = &lt;script type = "text/javascript"&gt;document.write(x); &lt;/script&gt;
  </code></pre>