import net.htmlparser.jericho.*;
public class HTMLParserExample {
public static void main(String[] args) throws Exception {
String html = "<html><body><h1>Hello, Jericho!</h1></body></html>";
Source source = new Source(html);
TextExtractor extractor = new TextExtractor(source);
String text = extractor.toString();
System.out.println(text);
}
}