title: save phantom js processed page into html file with absolute url
body: <p>I want to save my special web pages after document loaded into special file name via all url and links convert to absolute url such as <code>wget -k</code>.</p>
  
  <pre><code>//phantomjs
  var page = require('webpage').create();
  var url = 'http://google.com/';
  page.open(url, function (status) {
  var js = page.evaluate(function () {
  return document;
  });
  console.log(js.all[0].outerHTML);
  phantom.exit();
  });
  </code></pre>
  
  <p>for example my html content somthing like this:</p>
  
  <pre><code>&lt;a href="//page.html"&gt;page&lt;/a&gt;
  </code></pre>
  
  <p>must be</p>
  
  <pre><code>&lt;a href="http://google.com/page.html"&gt;page&lt;/a&gt;
  </code></pre>
  
  <p>It's my sample script but how can i convert all url and links such as <code>wget -k</code> using phantomjs?</p>