bs4.BeautifulSoup.replaceWithChildren

BeautifulSoup.replaceWithChildren()