How do I make BeautifulSoup ignore any indents in original HTML when getting text
I think, I basically want the reverse of what the prettify() function does. When one has HTML code (excerpt) like: <p> Test text with something in it Test text with something in it <i>and italic text</i> inside that text. Test…