Idea: add with_top=True param to lxml.html.tostring()
6 Nov
2017
6 Nov
'17
7:21 p.m.
Hey folks, to get the HTML within an element as a string (ie. innerHTML) you currently need to: ''.join([x.text, *[lxml.html.tostring(y,encoding='unicode') for y in x]]) I therefore think a with_top=True parameter should be added to lxml.html.tostring(). Best regards, Martin
2535
Age (days ago)
2535
Last active (days ago)
0 comments
1 participants
participants (1)
-
martinï¼ bitdweller.com