why are all the contenthtml in html plain?

If you want to get the innertext of element try .text:

for element in elements:
    print(element.text)

For innerHTML use .html:

for element in elements:
    print(element.html)

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top