title: Jquery: convert html to array
body: <p>Is there a easy way to get an array out of a string (html) with jquery/javascript like:</p>
  
  <p>html:</p>
  
  <pre><code>&lt;h1&gt;this is a test&lt;/h1&gt;
  &lt;p&gt;This is a test&lt;/p&gt;
  &lt;p&gt;This is a test&lt;/p&gt;
  &lt;h2&gt;this is a test&lt;/h2&gt;
  &lt;p&gt;This is a test&lt;/p&gt;
  </code></pre>
  
  <p>to an array:</p>
  
  <pre><code>array[0]['tag'] = 'h1'
  array[0]['value'] = 'this is a test'
  array[1]['tag'] = 'p'
  array[1]['value'] = 'this is a test'
  array[2]['tag'] = 'p'
  array[2]['value'] = 'this is a test'
  array[3]['tag'] = 'h2'
  array[3]['value'] = 'this is a test'
  array[4]['tag'] = 'p'
  array[4]['value'] = 'this is a test'
  </code></pre>
  
  <p>Thanks!</p>