title: get google doc as HTML in google app script
body: <p>How can I get google doc as HTML in google app script?
  For example. I can get document body like so.</p>
  
  <pre><code>DocumentApp.getActiveDocument().getBody();
  </code></pre>
  
  <p>But when I log it there is nothing.</p>