Handle WP cute quoting.

This commit is contained in:
Thomas Gideon 2011-12-16 08:56:59 -05:00
parent 64ce2f732c
commit 5cd341e11e
1 changed files with 2 additions and 0 deletions

View File

@ -180,6 +180,8 @@ def __permalink(title):
def __title(title):
fixed = title
fixed = re.sub(u'\u2013', '-', fixed)
fixed = re.sub(u'\u201c', '"', fixed)
fixed = re.sub(u'\u201d', '"', fixed)
fixed = re.sub(u'\u2019', '\'', fixed)
fixed = re.sub(u'\xd7', 'x', fixed)
return fixed