Because regular expressions scare me, I\'m trying to find a way to remove all HTML tags and resolve HTML entities from a string in Python.
You might need something more complicated than a regular expression. Web pages often have angle brackets that aren't part of a tag, like this:
5 < 7
Stripping the tags with regex will return the string "5 " and treat
< 7
as a single tag and strip it out.
I suggest looking for already-written code that does this for you. I did a search and found this: http://zesty.ca/python/scrape.html It also can resolve HTML entities.