Post

PythonPython

c
cayrel rings

Posted on 26th February 2024|32 views

0
votes

Python Remove Html Tags

How to remove HTML tags from python code?

Answers
P
Harshel Mike

Posted on 26th February 2024

Try this

def remove_tags(text): 

return ''.join(xml.etree.ElementTree.fromstring(text).itertext())

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos