Added code to unescape HTML entities
This commit is contained in:
parent
88ea538773
commit
7b1cc2ff0e
|
@ -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
|
||||
|
|
Reference in a new issue