This commit is contained in:
Kovid Goyal 2011-12-18 23:42:22 +05:30
parent 2515bd0f4e
commit 945855611a

View File

@ -527,7 +527,7 @@ def entity_to_unicode(match, exceptions=[], encoding='cp1252',
ent = match.group(1) ent = match.group(1)
if ent in exceptions: if ent in exceptions:
return '&'+ent+';' return '&'+ent+';'
if ent == 'apos': if ent in {'apos', 'squot'}: # squot is generated by some broken CMS software
return check("'") return check("'")
if ent == 'hellips': if ent == 'hellips':
ent = 'hellip' ent = 'hellip'