Let’s say that I have the following stored in a jQuery variable.
<i class="a b c"></i><span class="itemLabel d"><span><i class="e f g"></i>something</span></span>
Here the text I want to examine is “something.” I want to make sure that that text is “something” and not something else. How can that be done?
http://jsfiddle.net/We2nf/