How to remove content in nested tags with BeautifulSoup? These posts showed the reverse to retrieve the content in nested tags: How to get contents of nested ta
BeautifulSoup
Eg.
body = bs(html) for tag in body.find_all('bar'): tag.replace_with('')