kickass fix
parent
263eb29160
commit
4e4e2bf569
|
@ -214,14 +214,11 @@ class Content:
|
||||||
)
|
)
|
||||||
|
|
||||||
def unescape(self, string):
|
def unescape(self, string):
|
||||||
|
try:
|
||||||
pars = HTMLParser.HTMLParser()
|
pars = HTMLParser.HTMLParser()
|
||||||
return pars.unescape(string)
|
return pars.unescape(string)
|
||||||
#for (symbol, code) in self.htmlCodes:
|
except:
|
||||||
# try:
|
return string
|
||||||
# string = re.sub(code, symbol, string)
|
|
||||||
# except:
|
|
||||||
# pass
|
|
||||||
#return string
|
|
||||||
|
|
||||||
def stripHtml(self, string):
|
def stripHtml(self, string):
|
||||||
for (html, replacement) in self.stripPairs:
|
for (html, replacement) in self.stripPairs:
|
||||||
|
|
Loading…
Reference in New Issue