title: How can I store the result of .each() into localStorage?
body: <p>Here is my code:</p>
  <pre><code>localStorage.setItem('qandaInputsValue7', $(&quot;#ask_q_tags span:first-child, #ask_q_tags span + span&quot;).each(function() { return $( this )[0].outerHTML }));
  </code></pre>
  <p>The result is:</p>
  <p><a href="https://i.stack.imgur.com/WVRHN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WVRHN.png" alt="enter image description here" /></a></p>
  <p>As you can see It is an object which isn't useful.</p>
  <hr />
  <p>The expected result is: <em>(which should be as the value of that key in localStorage)</em></p>
  <pre><code>&lt;span&gt;something&lt;/span&gt;&lt;span&gt;something else&lt;/span&gt;
  </code></pre>
  <p>See? I need to make a combined string of <code>return $( this )[0].outerHTML</code> to set it into localStorage. How can I do that?</p>
  <hr />
  <p>Noted that neither <code>JSON.stringify()</code> nor <code>.get()</code> won't work.</p>