SyntaxFix
Write A Post
Hire A Developer
Questions
var myContent = '<div id="test">Hello <span>world!</span></div>'; alert($(myContent).text());
That results in hello world. Does that answer your question?
http://jsfiddle.net/D2tEf/ for an example