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 | Description |
|---|---|
HtmlToPlainText() |
| Modifier and Type | Method | 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–2018 Jonathan Hedley. All rights reserved.