BeautifulSoup unescapes HTML for you

This commit is contained in:
Luke Rogers 2012-09-06 14:08:59 +12:00
parent 394a07235d
commit 03b4ad4239

View file

@ -23,7 +23,7 @@ def fact(inp, say=False, nick=False):
fact = ''.join(response.find(text=True))
if fact:
fact = http.unescape(unicode(fact)).strip()
fact = fact.strip()
break
else:
if attempts > 2: