title: extracting attributes from html using jquery
body: <p>I have a string that I got from outerHTML. It logs like:</p>
  
  <pre><code>var responseHtml = jQuery(data).find("#response")[0].outerHTML;
  console.log(responseHtml);
  
  Log:
  
  &lt;div id="response" hello="world" big="span" hey="there"&gt;&amp;lt;\/div&amp;gt;"
  &lt;div class="clear"&gt;&lt;/div&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I am trying to get it in a format so I can access 'world' like:<code>values["hello"] =&gt; "world"</code></p>
  
  <p>I am stuck here. What is the appropriate way to achieve it?</p>