unwrapping doesn't work correctly if quotes are encoded as entities

This commit is contained in:
ldolse 2010-09-15 15:58:51 +08:00
parent 70998858f1
commit 66b443adc5

View File

@ -17,7 +17,6 @@ convert_entities = functools.partial(entity_to_unicode,
result_exceptions = { result_exceptions = {
u'<' : '&lt;', u'<' : '&lt;',
u'>' : '&gt;', u'>' : '&gt;',
u"'" : '&apos;',
u'&' : '&amp;', u'&' : '&amp;',
}) })
_span_pat = re.compile('<span.*?</span>', re.DOTALL|re.IGNORECASE) _span_pat = re.compile('<span.*?</span>', re.DOTALL|re.IGNORECASE)