How to retrieve HTML content from WebView (as a string)

前端 未结 6 2145
旧巷少年郎
旧巷少年郎 2020-11-30 00:55

How do I retrieve all HTML content currently displayed in a WebView?

I found WebView.loadData() but I couldn\'t find the opposite equivalent (e.g. WebVi

6条回答
  •  天命终不由人
    2020-11-30 01:07

    Unfortunately there is not easy way to do this.

    See How do I get the web page contents from a WebView?

    You could just make a HttpRequest to the same page as your WebView and get the response.

提交回复
热议问题