public class HtmlToPlainText extends Object
Note that this is a fairly simplistic formatter -- for real world use you'll want to embrace and extend.
To invoke from the command line, assuming you've downloaded the jsoup jar to your current directory:
java -cp jsoup.jar org.jsoup.examples.HtmlToPlainText url [selector]
| Constructor and Description |
|---|
HtmlToPlainText() |
| Modifier and Type | Method and Description |
|---|---|
String |
getPlainText(Element element)
Format an Element to plain-text
|
static void |
main(String... args) |
public static void main(String... args) throws IOException
IOExceptionCopyright © 2009-2016 Jonathan Hedley. All Rights Reserved.