Best way to get innerHTML

544 views
Skip to first unread message

darkporter

unread,
Oct 10, 2009, 2:56:51 PM10/10/09
to beautifulsoup
I'm doing this, but is there a neater way?

some_element = soup.find(...)
innerhtml = "".join([str(x) for x in some_element.contents])
Reply all
Reply to author
Forward
0 new messages