title: How to get visual DOM structure from url in node.js
body: <p>I am wondering how to get "visual" DOM structure from url in node.js. When I try to get html content with <a href="https://www.npmjs.com/package/request" rel="nofollow noreferrer">request</a> library, html structure is not correct.</p>
  
  <pre><code>const request = require('request');
  const jsdom = require("jsdom");
  const { JSDOM } = jsdom;
  
  request({ 'https://www.washingtonpost.com/news/acts-of-faith/wp/2017/06/30/trump-promised-to-destroy-the-johnson-amendment-congress-is-targeting-it-now/', jar: true }, function (e, r, body) {
    console.log(body);
  });
  </code></pre>
  
  <p>reurned html structure is <a href="https://pastebin.com/ANSg4GP2" rel="nofollow noreferrer">here</a>, where meta tags are not correct:</p>
  
  <pre><code>&lt;meta property="og:title" content=""/&gt;
  &lt;meta itemprop="description" name="description" content=""/&gt;
  </code></pre>
  
  <p>If I open website in web browser, I can see correct meta tags in web inspector:</p>
  
  <pre><code>&lt;meta property="og:title" content="Trump promised to destroy the Johnson Amendment. Congress is targeting it now."/&gt;
  
  &lt;meta itemprop="description" name="description" content="Observers believe the proposed legislation would make it harder for the IRS to enforce a law preventing pulpit endorsements."/&gt;
  </code></pre>