delete a tr based on sub element value inside

delete a tr based on sub element value inside

I have a html body which has :

<table>
<tr><td><h3><nobr>Leaveit1</nobr></h3></td></tr>
<tr><td><h3><nobr>takeit</nobr></h3></td></tr>
<tr><td><h3><nobr>Leaveit2</nobr></h3></td></tr>
</table>

I want to delete the  tr which contains nobr as "takeit".

How do i go about doing it

thanks