I am trying to get all text on page. I have tried this without luck:
$(document).ready(function() {
var Side = $(page).text();
alert( Side );
});
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
'body'instead ofpage.pageis not a defined variable.Other options are
documentorhtml, but these would also include non-body text, such as the contents of the<title>tags.If you want to strip out the JavaScript, you can use:
If you really want to strip all invisible items, use: