title: How do I parse this piece of innerHTML in JavaScript?
body: <p>I did this: </p>
  
  <pre><code>var blah = document.getElementById('id').getElementsByClassName('class')[0].innerHTML;
  </code></pre>
  
  <p>Now I have this in bar:</p>
  
  <pre><code>&lt;a class="title" href="http://www.example.com/" tabindex="1"&gt;Some text goes here&lt;/a&gt; &lt;span class="domain"&gt;(&lt;a href="/domain/foobar.co.uk/"&gt;foobar.co.uk&lt;/a&gt;)&lt;/span&gt;
  </code></pre>
  
  <p>I want to read the string "Some text goes here" from the HTML using JS (no jQuery). I don't have access to the site's HTML. I'm parsing a webpage to inject JS for a browser extension.</p>
  
  <p>Will I just have to parse it as a string and find my text from between > and &lt; or is there a way to parse innerHTML in JS?</p>