BeautifulSoup unescapes HTML for you
This commit is contained in:
parent
394a07235d
commit
03b4ad4239
|
@ -23,7 +23,7 @@ def fact(inp, say=False, nick=False):
|
||||||
fact = ''.join(response.find(text=True))
|
fact = ''.join(response.find(text=True))
|
||||||
|
|
||||||
if fact:
|
if fact:
|
||||||
fact = http.unescape(unicode(fact)).strip()
|
fact = fact.strip()
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
if attempts > 2:
|
if attempts > 2:
|
||||||
|
|
Reference in a new issue