mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-09 05:21:13 +02:00
Merge remote-tracking branch 'origin' into metadata
This commit is contained in:
commit
e61371d5c4
1 changed files with 2 additions and 2 deletions
|
|
@ -81,10 +81,10 @@ def removeEntities(text):
|
|||
|
||||
try:
|
||||
t = text.decode('utf-8')
|
||||
except UnicodeEncodeError, e:
|
||||
except (UnicodeEncodeError,UnicodeDecodeError), e:
|
||||
try:
|
||||
t = text.encode ('ascii', 'xmlcharrefreplace')
|
||||
except UnicodeEncodeError, e:
|
||||
except (UnicodeEncodeError,UnicodeDecodeError), e:
|
||||
t = text
|
||||
text = t
|
||||
# replace numeric versions of [&<>] with named versions,
|
||||
|
|
|
|||
Loading…
Reference in a new issue