I have a soup in Python like this:
Title: Info &l
Title: Info
You'll be wanting to use beautifulsoup's unwrap() for this.
import bs4 soup1 = bs4.BeautifulSoup(htm1, 'html.parser') for match in soup1.findAll('span'): match.unwrap() print soup1