Convert to end line
You can do this using the BeautifulSoup object itself, or any element of it: for br in soup.find_all(“br”): br.replace_with(“\n”)
You can do this using the BeautifulSoup object itself, or any element of it: for br in soup.find_all(“br”): br.replace_with(“\n”)
I upgraded beautifulsoup4 and html5lib and it resolved the issue. pip install –upgrade beautifulsoup4 pip install –upgrade html5lib