I want to fetch text between tags of html file. a piece of file is below:
<div data-status="failed" class="notification is-danger">
<h1 class="title is-size-2">0</h1>
<p class="title is-size-4">Failed</p>
</div>
how can i fetch text between h1 and p tag using javascript or node js. i am not talking about inside browser. This html file i have in file local machine and i want to write some static code to read it's content. Please suggest