Reputation: 10662
If I use:
String plain = Html.fromHtml(html).toString;
to render simple 'html' that contains:
<!doctype html>
<html>
<head><meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Google</title>
</head>
<body>any plain vanila HTML goes here
</body>
All is nice and dandy.
But what if that page contains tons of Javascript code that is nicely rendered by all web browsers but isn't available to me?
Is there a renderer that takes care of the Javascript as well, to output HTML or plaintext, that isn't necessarily going to a visual display?
(I know about WebView but my understanding that I can't really access its output. Or can I?)
Upvotes: 2
Views: 995
Reputation: 1006654
Is there a renderer that takes care of the Javascript as well, to output HTML or plaintext, that isn't necessarily going to a visual display?
WebView
or bust.
(I know about WebView but my understanding that I can't really access its output. Or can I?)
WebView
via addJavascriptInterface()
loadUrl("javascript:...")
on the WebView
to invoke a hunk of Javascript that gathers your information and calls a method on your Java objectUpvotes: 1