I am working with a html script converted into a string
How do I replace all the html code in tags with blank using regex?
Using a relatively simple pattern (for which it might be a good idea to expand on),
import re
html = re.sub(r'<.+?>', '', html)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With