How can I turn <br> and <p> into line breaks?

  • Thread starter Thread starter L
  • Start date Start date

L

New Member
Let's say I have an HTML with \[code\]<p>\[/code\] and \[code\]<br>\[/code\] tags inside. Aftewards, I'm going to strip the HTML to clean up the tags. How can I turn them into line breaks?I'm using Python's BeautifulSoup library, if that helps at all.
 
Back
Top