title: Get complete HTML contents from Android WebView
body: <p>I have a WebView with some web page in it. Now I want to retrieve <strong>complete</strong> HTML contents of what is inside the WebView.</p>
  
  <p>I use loadUrl("javascript:...") and WebView's javascript interface feature to retrieve this HTML using something like this:</p>
  
  <ul>
  <li>document.getElementsByTagName('html')[0].innerHTML / outerHTML</li>
  <li>document.documentElement.outerHTML</li>
  <li>...</li>
  </ul>
  
  <p>In each case I receive <strong>partial</strong> HTML contents - exactly first 10000 characters! So my question is - how do I get <strong>complete</strong> HTML content? Is it device-specific and, maybe there are workarounds?</p>
  
  <p>Btw, web pages are created dynamically with javascript - I can't simply download the file from server.</p>
  
  <p>Also, I tried printing HTML contents in javascript with console.log and found exactly the same behavior.</p>
  
  <p>Thanks in advance!</p>