How to make HTML contnent with same tag in each line using Sed in python

I am looking in a an HTML file to modify for the purpose of easy parsing . I need to put each item of HTML after body to separate line. Means each tag content must come in one individual single line without split .

Don’t reinvent the wheel. In the stdlib there is a html parser.

1 Like