07/31/2018 / Python Python – remove hyperlink from html from bs4 import BeautifulSoup soup = BeautifulSoup(html) for m in soup.find_all('a'): m.replaceWithChildren() print soup