On Android, I have a WebView that is displaying a page.
WebView
How do I get the page source without requesting the page again?
It seems WebView>
WebView>
This is an answer based on jluckyiv's, but I think it is better and simpler to change Javascript as follows.
browser.loadUrl("javascript:HTMLOUT.processHTML(document.documentElement.outerHTML);");