How can i convert .outerHTML to .text()
<p>I want to convert <code>item.outerHTML</code> to <code>.text()</code>, Actually I want to convert the html to text, now what do I do ?  </p>

<pre><code>$(imgAttr).each(function(index,item) {
 var valImg = $(item).attr("alt");
 if (typeof valImg == typeof undefined || valImg == "") {           
     $(".url-res").append(item.outerHTML.text());
 }
</code></pre>

<p>});</p>