Added code to unescape HTML entities

This commit is contained in:
lukeroge 2012-03-30 12:58:47 +13:00
parent 88ea538773
commit 7b1cc2ff0e

View file

@ -19,6 +19,7 @@ def refresh_cache():
for e in soup.findAll('div', {'class': 'post article'}):
id = int(e['id'])
text = ''.join(e.find('p').findAll(text=True))
text = http.unescape(text)
fml_cache[id] = text
# do an initial refresh of the cache