0

Possible Duplicate:
Convert XML/HTML Entities into Unicode String in Python

I'm doing some webscraping, and I need to replace things such as   with just ' '

How do I get Python to decode the HTML entity to it's associated character?

Community
  • 1
  • 1
MaxYarmolinsky
  • 1,117
  • 1
  • 10
  • 16
  • other than just doing a string replace every time something pops up... which is an option since most of the time the only thing people put in is those space encodings – MaxYarmolinsky Dec 28 '11 at 11:06
  • definitely a duplicate, sorry about that... don't know why that didn't pop up in my search – MaxYarmolinsky Dec 28 '11 at 11:07

0 Answers0