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