title: jQuery parse HTML element and get it's inner HTML
body: <p>I have a table in HTML with table rows, but some elements have an <code>&lt;span&gt;</code> elements inside, so i want to get the inner html of that span.</p>
  
  <p>I have an array with all <code>&lt;tr&gt;</code> elements (not jQuery Objects, because I get it from the DataTables plugin API), so I have this code:</p>
  
  <pre><code>if (data[i+1].includes("span")) {
       var label = $.parseHTML(data[i+1]);
       // editFormInputs.eq(i).val(label.first().html());
  } else {
      editFormInputs.eq(i).val(data[i+1]);
  }
  </code></pre>
  
  <p>So the problem is on the commented line. I tried to convert the html to jQuery element with <code>parseHTML()</code>, which returns an array. This works fine, but when I try to get the first element of the array with the <code>first()</code> function it gives me an error <code>first() is not a function</code>, so what I am doing wrong? Thanks.</p>