fix escape twice's bug

This commit is contained in:
2021-01-17 20:47:38 +08:00
parent e74c7d70df
commit 80cfc9ddf7
4 changed files with 11 additions and 10 deletions

View File

@@ -245,7 +245,7 @@ class RSSParser:
else:
for k in i.childNodes:
s = s + k.toxml()
m[i.nodeName] = unescape(s)
m[i.nodeName] = s
elif typ == 'html':
s = ''
if i.nodeValue is not None:
@@ -256,7 +256,7 @@ class RSSParser:
p = HTMLSimpleParser()
if 'link' in m and m['link'] is not None:
p.baseUrl = m['link']
p.feed(unescape(s))
p.feed(s)
if p.data == '' and i.firstChild.nodeValue.find('<') == -1:
m[i.nodeName] = i.firstChild.nodeValue
else: