Use contents() to get all the child nodes, then filter the search for text nodes that match your criteria containing "Hello" .
$('#test').contents().filter(function() { return this.nodeType == 3 && $.trim(this.data) == 'Take me'; })
jsFiddle .
source share