title: Get text from DOM excluding script tags
body: <p>I want to get the TEXT ONLY from the following HTML document without the contents of the <code>&lt;script&gt;</code> tag?</p>
  
  <pre><code>&lt;html&gt;
    &lt;body&gt;
      &lt;script&gt;
        a = 0;
      &lt;/script&gt;
     &lt;div&gt;TEST&lt;/div&gt;
     &lt;p&gt;test&lt;/p&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I have the following code:</p>
  
  <pre><code>$('body').text()
  </code></pre>
  
  <p>This currently gets the result:</p>
  
  <pre><code>a = 0; TEST test
  </code></pre>
  
  <p>But I am trying to get the result: </p>
  
  <pre><code>TEST test
  </code></pre>