17/03/01 21:14:18.29 ld4NKemj.net
>>754
XML Parserでパースしてあげればいい
ざっくりとこんな感じで
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse(HTML_FILE);
Element body = (Element) document.getElementsByTagName("body").item(0);
String text = body.getTextContent();