git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@243
fdd5c36f-1aea-0310-aeeb-
c58d7e2b6c23
for part in entity_re.split(title):
if part not in ("&", "<", ">", """) and \
entity_re.match(part):
- part = unichr(name2codepoint.get(part[1:-1], part)).encode(charset)
- output.append(part)
+ _part = name2codepoint.get(part[1:-1], None)
+ if _part is None:
+ _part = part
+ else:
+ _part = unichr(_part).encode(charset)
+ output.append(_part)
title = ''.join(output)
output = []