htmldoc.text
html tags are ignored. I want pretty print for html tags such as table , br.
What easy way are you using to do that?
htmldoc.text
html tags are ignored. I want pretty print for html tags such as table , br.
What easy way are you using to do that?
I think you want beautiful soup.
from bs4 import BeautifulSoup
soup = BeautifulSoup(html_doc, 'html.parser')
print(soup.prettify())