$(DEĞİŞKENİNİSMİ).jqueryfonksiyonunuz

Kullanımda bu şekilde gereksiz fonksiyon kullanmanıza gerek yok.
var data = '<div class="content"><h1>This is a heading</h1><p>This is a paragraph of text.</p><p><strong>Note:</strong> If you don\'t escape "quotes" properly, it will not work.</p></div><div class="isim">deneme</div>';
var x = $(data).text();
console.log(x)
hocam sen ne yaptın öyle

değilkeni selector ile seçmişsin