Added code to unescape HTML entities
This commit is contained in:
parent
88ea538773
commit
7b1cc2ff0e
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ def refresh_cache():
|
||||||
for e in soup.findAll('div', {'class': 'post article'}):
|
for e in soup.findAll('div', {'class': 'post article'}):
|
||||||
id = int(e['id'])
|
id = int(e['id'])
|
||||||
text = ''.join(e.find('p').findAll(text=True))
|
text = ''.join(e.find('p').findAll(text=True))
|
||||||
|
text = http.unescape(text)
|
||||||
fml_cache[id] = text
|
fml_cache[id] = text
|
||||||
|
|
||||||
# do an initial refresh of the cache
|
# do an initial refresh of the cache
|
||||||
|
|
Reference in a new issue