Is there an (unobtrusive, to the user) way to get all the text in a page with Javascript? I could get the HTML, parse it, remove all tags, etc, but I\'m wondering if there\'
I suppose you could do something like this, if you don't mind loading jQuery.
var theText; $('p,h1,h2,h3,h4,h5').each(function(){ theText += $(this).text(); });
When its all done, "theText" should contain most of the text on the page. Add any relevant selectors I may have left out.