Handle WP cute quoting.
This commit is contained in:
parent
64ce2f732c
commit
5cd341e11e
1 changed files with 2 additions and 0 deletions
|
@ -180,6 +180,8 @@ def __permalink(title):
|
||||||
def __title(title):
|
def __title(title):
|
||||||
fixed = title
|
fixed = title
|
||||||
fixed = re.sub(u'\u2013', '-', fixed)
|
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'\u2019', '\'', fixed)
|
||||||
fixed = re.sub(u'\xd7', 'x', fixed)
|
fixed = re.sub(u'\xd7', 'x', fixed)
|
||||||
return fixed
|
return fixed
|
||||||
|
|
Loading…
Reference in a new issue