webview dump all html

Solutions on MaxInterview for webview dump all html by the best coders in the world

showing results for - "webview dump all html"
Stefania
06 Aug 2016
1wvbrowser.evaluateJavascript(
2        "(function() { return ('<html>'+document.getElementsByTagName('html')[0].innerHTML+'</html>'); })();",
3         new ValueCallback<String>() {
4            @Override
5            public void onReceiveValue(String html) {
6                Log.d("HTML", html); 
7                // code here
8            }
9    });
10