title: How to extract all html text excluding what's inside the script tag?
body: <p>For a project I want to create a variable that stores all the text within the html, so pretty much everything between tags, titles, paragraphs, everything visible for a user on a webpage. However I don't want my javascript code that's between the script tag to show up in this output too.</p>
  
  <p>I was trying with something like this:</p>
  
  <pre><code>var content = $("html").remove("script").text()
  </code></pre>
  
  <p>But this is not working.</p>