title: Copying rendered text with Puppeteerjs
body: <p>I'm having issues finding a way to copy text with <a href="https://developers.google.com/web/tools/puppeteer/" rel="nofollow noreferrer">Puppeteer</a>.</p>
  
  <p>In my research, I've found this <a href="https://stackoverflow.com/questions/49131516/how-to-copy-text-from-browser-clipboard-using-puppeteer-in-nodejs">post</a> but, this wasn't what I was trying to do (copy text from input). What I am trying to do is copy text from a website. Then paste it into a Google Doc file. My main goal is to keep the formatting. </p>
  
  <p>I have been able to get the HTML text with:</p>
  
  <p><code>let html_content = await page.evaluate(el =&gt; el.innerHTML, await page.$('#sites-canvas-main-content &gt; table &gt; tbody &gt; tr &gt; td &gt; div'));</code></p>
  
  <p>This unfortunately does not keep the formatted text. </p>
  
  <p>Is this even possible to do with Puppeteer?</p>