title: Using jQuery to find push all links in html to an array?
body: <p>given a block of html that is a var, not on the actual document:</p>
  
  <pre><code>var html_cmt = "Check out this awesome link: https://github.com/jquery/jquery-ui Check out this awesome link: https://github.com/jquery/jquery-ui Check out this awesome link: https://github.com/jquery/jquery-ui Check out this awesome link:"
  </code></pre>
  
  <p>I need to build an array of all links, I have the following but it's only building the first one, not all.</p>
  
  <pre><code>var hrefs = new Array();
  hrefs.push( $("&lt;div&gt;").html(html_cmt).find('a').attr('href'));
  </code></pre>
  
  <p>Suggestions on how I can create an array of all the links, given html content that is not on the document just a JS var? thank you</p>