Is there a "hocus-pocus" function, suitable for Android, that converts HTML to plaintext?
I am referring to a function like the clipboard conversion operation found in browsers like Internet Explorer, Firefox, etc: If you select all rendered HTML inside the browser and copy/paste it to a text editor, you will receive (most of) the text, without any HTML tags or headers.
In a similar thread, I saw a reference to html2text but it's in Python. I am looking for an Android/Java function.
Is there something like this available or must I do this myself, using Jsoup or Jtidy?
I'd try something like:
String html = "<b>hola</b>";
String plain = Html.fromHtml(html).toString();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With