This commit is contained in:
Kovid Goyal 2007-12-05 05:44:54 +00:00
parent 104ec7cc93
commit 0128e830c5

View File

@ -317,6 +317,8 @@ def entity_to_unicode(match, exceptions=[]):
ent = match.group(1)
if ent in exceptions:
return '&'+ent+';'
if ent == 'apos':
return "'"
if ent.startswith(u'#x'):
return unichr(int(ent[2:], 16))
if ent.startswith(u'#'):