info = '''<table>
<tr align = "center">
<h1> Lachlan Osborn </h1>
<p> Address: 5 Smith Street, Manly <br>
Date of Birth: 26th April 1993 </p>
<a href="semester.html"><b>My Semester Units</b></a>
<p><b>Check out my <a href="hobbies.html">hobbies.</a></b></p>
</tr>
</center>'''
def remove_html(text, info):
import re
text = re.sub(r'<.*?>', '', info)
return text
remove_html(text.strip())
boiishuvo 0 Junior Poster in Training
snippsat 661 Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.