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
More Related Contents:
- Find a string of text in an element and wrap some span tags round it
- jQuery Adding new option to select element doesn't pick up the string [closed]
- Using .text() to retrieve only text not nested in child tags
- How can I find elements by text content with jQuery?
- Find text string using jQuery?
- Select which href ends with some string
- How can I change the text color with jQuery?
- Append text to input field
- auto resize text (font size) when resizing window?
- jQuery – replace all instances of a character in a string [duplicate]
- jQuery if div contains this text, replace that part of the text
- typing animated text
- Get the current jQuery selector string?
- jQuery remove tag from HTML String without RegEx
- How to change the text of a button in jQuery?
- How to enable CORS in flask
- jQuery watch div
- How to access JSON Object name/value?
- jQuery : remove element except inside element
- How can I change the css class rules using jQuery?
- Jquery and HTML FormData returns “Uncaught TypeError: Illegal invocation”
- Insert space before capital letters
- How to solve/hack fading semi-transparent PNG bug in IE8?
- Bootstrap CSS Active Navigation
- jQuery ajax call to REST service
- How to enable jQuery support in Aptana Studio 3
- How to create thead and tbody in ASP.NET Table ?
- Get the offset of a hidden element
- is it possible to remove an html comment from dom using jquery
- How can I list the uploads from a YouTube Channel?