I'm trying to get the text from a website. This does give me information from the website. But, it returns all of the HTML. I am looking for a way just to get the plain text off of the website. Anyone know of a way to do this?
Code:BufferedReader in = null;
String getid = null;
try {
URL yahoo;
yahoo = new URL("http://www.yahoo.com");
in = new BufferedReader(new InputStreamReader(yahoo.openStream()));
String inputLine;
while ((inputLine = in.readLine()) != null) {
System.out.println(inputLine);
}
}
in.close();
} catch (IOException ex) {
Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);
}

