How to replace a tag with space Beautiful Soup
Suppose i have
text = """ <a href = 'http://www.crummy.com/software'>Hello There</a>"""
I want to replace the a hrefs and /a with just put a space (" "). In its
place. BTW its a BeautifulSoup.BeautifulSoup Class. So normal .replace
wouldn't work.
I want text to be just
""" Hello There """
Notice the space after and before "Hello There".
No comments:
Post a Comment