logo-MindMajix
PostPythonPython
c
cayrel rings

Posted on 24th July 2024|40 views

0
votes

Python Remove Html Tags

How to remove HTML tags from python code?

1 answers
Answers
P
Harshel Mike

Posted on 24th July 2024| views

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
Name
Course *
Email *
Phone Number