title: Convert HTML string into Jquery Object
body: <p>I have a HTML string which is a mix of text plus HTML tags, which i'm trying to convert into an object. So for e.g. my HTML string would look like:</p>
  
  <pre><code>Pay using your &lt;img src="visa-src" /&gt; or your &lt;img src="mc-src" /&gt;
  </code></pre>
  
  <p>I'm using jquery 1.8.0 and tried using <code>$(HTMLSTRING)</code> however for some reason it strips out the text before the anchor and gives the rest, i.e. object with the children <code>#img, #text</code> and <code>#img</code> while the first text (Pay using your) gets stripped off</p>
  
  <p>However lets say if the input is:</p>
  
  <pre><code>&lt;img src="visa-src" /&gt; or your &lt;img src="mc-src" /&gt;
  </code></pre>
  
  <p>it correctly gives me the object with three child elements in it #img, #text and #img.</p>
  
  <p>Are there any other ways to convert this properly?</p>
  
  <p>Update:
  What i'm ultimately looking at is to change the each of the img src there in the HTML string and prepend with some host there. </p>
  
  <p>Thanks.</p>