mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Fixed html stripping in foldoc.
This commit is contained in:
parent
6aacef4cf4
commit
df45ce1195
@ -48,7 +48,6 @@ import re
|
|||||||
import time
|
import time
|
||||||
import urllib
|
import urllib
|
||||||
import urllib2
|
import urllib2
|
||||||
import threading
|
|
||||||
import htmlentitydefs
|
import htmlentitydefs
|
||||||
import xml.dom.minidom
|
import xml.dom.minidom
|
||||||
|
|
||||||
@ -133,7 +132,7 @@ class Http(callbacks.Privmsg):
|
|||||||
text = html.split('<P>\n', 2)[1]
|
text = html.split('<P>\n', 2)[1]
|
||||||
text = text.replace('.\n', '. ')
|
text = text.replace('.\n', '. ')
|
||||||
text = text.replace('\n', ' ')
|
text = text.replace('\n', ' ')
|
||||||
text = self._html.sub('', text)
|
text = stripHtml(text)
|
||||||
irc.reply(msg, text.strip())
|
irc.reply(msg, text.strip())
|
||||||
|
|
||||||
_gkrating = re.compile(r'<font color="#FFFF33">(\d+)</font>')
|
_gkrating = re.compile(r'<font color="#FFFF33">(\d+)</font>')
|
||||||
|
Loading…
Reference in New Issue
Block a user