On Android, I have a WebView
that is displaying a page.
How do I get the page source without requesting the page again?
It seems WebView
should have some kind of getPageSource()
method that returns a string, but alas it does not.
If I enable JavaScript, what is the appropriate JavaScript to put in this call to get the contents?
webview.loadUrl("javascript:(function() { " +
"document.getElementsByTagName('body')[0].style.color = 'red'; " +
"})()");