I have to get span tag from in response body where i have many html element. Below is the span element which i have to find:
<span title="WorldVentures Fdn" data- scribe="element:name">WorldVentures Fdn</span>
<span title="@WVFoundation" data-scribe="element:screen_name" >@WVFoundation</span>
I used this code:
data.body = data.body.replace(/(<span[^c]*class="TweetAuthor-name Identity-name customisable-highlight"[^>]*>)/g, '');
This code is something fine only need to put closing tag for span also so closing tag with text still remains there.
How do i remove this span from complete body?