Let suppose I have this html body
<div style="height: 100%">
<div class="vtex-rich-text-0-x-container">
<div class="vtex-rich-text-0-x-wrapper">
<p class="lh-copy vtex-rich-text-0-x-paragraph">
<span class="b vtex-rich-text-0-x-strong">
Payless Shoesource Customer Care
</span>
<br> 4910 Corporate Centre Dr, Suite 210<br> Lawrence, KS 66047<br> Customer.service@payless.com
</p>
</div>
</div>
</div>
And someone has given me a text from the above html for eg: Lawrence I want to find the nearest html tag in which this Lawrence is present,which is <p>
tag in our case and the content of that p tag. which is <span class="b vtex-rich-text-0-x-strong">Payless Shoesource Customer Care</span><br> 4910 Corporate Centre Dr, Suite 210<br> Lawrence, KS 66047<br> Customer.service@payless.com