Question : WebView Dump all html
Answered by : smoggy-squirrel-tjypl72nseyf
wvbrowser.evaluateJavascript( "(function() { return ('<html>'+document.getElementsByTagName('html')[0].innerHTML+'</html>'); })();", new ValueCallback<String>() { @Override public void onReceiveValue(String html) { Log.d("HTML", html); // code here } });
Source : https://stackoverflow.com/questions/8200945/how-to-get-html-content-from-a-webview | Last Update : Mon, 18 Jan 21