title: JavaScript function, pass HTML as parameter
body: <p>I have two functions in my script, one that outputs some long HTML string, the other one that takes this string as a parameter and processes it.</p>
  
  <pre><code>function myFirstFunction() {
      //output some HTML
      return myHTML;
  }
  
  var myHTML = myFirstFunction();
  
  function mySecondFunction(myHTML) {
      //do something with parameter
  }
  </code></pre>
  
  <p>For some reason that I can't figure out, the Chrome JS Console keeps giving me the following error:
  <strong>"Uncaught SyntaxError: Unexpected token &lt;"</strong></p>
  
  <p>I thought maybe that was due to the fact, that the outputed HTML was pretty long since it seems to be working with small chunks of HTML.
  Any thoughts? Thx!</p>