I\'m trying to extract some text using BeautifulSoup. I\'m using get_text() function for this purpose.
BeautifulSoup
get_text()
My problem is that the text contain
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")