Using a regex

cleantext = BeautifulSoup(raw_html, "lxml").text

But it doesn’t prevent you from using external libraries, so I recommend the first solution.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)