Remove data from HTML which is not present inside any tag using python3

  html, python-3.x

I am trying to remove the content which is not present inside any tag from my HTML file. I attempted to use Beautiful Soup but seems like it’s not working. Can anyone help me with this?

Source: Python-3x Questions

LEAVE A COMMENT