select from a variable with html, with jquery
<p>I have html on a variable, how can I do a select on it and then an each on this variable? 
 Example:</p>

<pre><code>var ht = '&lt;div id="1" class="pp"&gt;Hi&lt;/div&gt;&lt;div id="2"&gt;Hola&lt;/div&gt;&lt;div id="3" class="pp"&gt; Bonjour&lt;/div&gt;';
$(ht).find(".pp").each( function(i){
   var i = this.id;
   console.log(i);
});
</code></pre>

<p>of course this does not work.
Thanks!</p>
