title: How to save a Jsoup Document to an HTML file?
body: <p>I have used this method to retrieve a webpage into an <code>org.jsoup.nodes.Document</code> object:</p>
  
  <p><code>myDoc = Jsoup.connect(myURL).ignoreContentType(true).get();</code></p>
  
  <p>How should I write this object to a HTML file?
  The methods <code>myDoc.html()</code>, <code>myDoc.text()</code> and <code>myDoc.toString()</code> don't output all elements of the document.</p>
  
  <p>Some information in a javascript element can be lost in parsing it. For example, "timestamp" in the source of an Instagram media page.</p>