Possible Duplicate:
Decode HTML entities in Python string?
I have a string full of HTML escape characters such as ", ”, and —.
Do any Python libraries offer reliable ways for me to replace all of these escape characters with their respective actual characters?
For instance, I want all "s replaced with “s.
You want to use this:
I also am seeing a lot of love for BeautifulSoup
Also Duplicate of these existing questions:
Decode HTML entities in Python string?
Decoding HTML entities with Python
Decoding HTML Entities With Python