I need to extract the data present between the end tag and the tag
in the code snippet below:
<td><b>First Type :</b>W<br><b>Second Type :</b>65<br><b>Third Type :</b>3</td>
What I need: W, 65, 3
But the problem is that these values โโcan also be empty, for example -
<td><b>First Type :</b><br><b>Second Type :</b><br><b>Third Type :</b></td>
I want to get these values โโif there is still an empty string
I tried using nextSibling and find_next ('br') , but it returned
<br><b>Second Type :</b><br><b>Third Type :</b></br></br>
and
<br><b>Third Type :</b></br>
if values โโ(W, 65, 3) are missing between tags
</b> and <br>
All I need is that it should return an empty string if there is nothing between these tags.
source share