conv3d
conv3d

Reputation: 2896

How to view scraped text with formatting?

I'm in iPython notebook. I scraped a website and now my text formatting contains all of the hidden "\n" and so on...

Is there a way to see the output formatted with the newlines and everything?

Upvotes: 0

Views: 38

Answers (1)

SwiftsNamesake
SwiftsNamesake

Reputation: 1578

From this answer:

from IPython.core.display import display, HTML
display(HTML(myHTML))

Upvotes: 1

Related Questions