title: How to get subset of string using Javascript/JQuery/JSON?
body: <p>I want to get a subset of a string in Javascript. Currently, I only know how to store the entire string:</p>
  
  <p>I have this as a JSON variable with a callback to foo:</p>
  
  <pre><code>foo({"results":[
  "&lt;div id=\"following\"&gt;&lt;span&gt;&lt;a href=\"http://twitter.com/barackobama\"&gt;Obama&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;"
  ]})
  </code></pre>
  
  <p>And this is my callback function:</p>
  
  <pre><code>function foo(o){
    var entireDiv = o.results[0];
  }
  </code></pre>
  
  <p><strong>How do I store just the "&lt; a href = ... > ... &lt; / a>
  " tag as a string in Javascript?</strong></p>