summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2010-10-27 11:37:31 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2010-10-27 11:37:31 +0200
commitc33aea37f26d9779132a4126de0b62245654cbd2 (patch)
tree846438f979f57f082215ec25c66e44ebd67e504a
parent984fa1addf3b0ad694978d244ccd73123ca30608 (diff)
downloadcurunir-c33aea37f26d9779132a4126de0b62245654cbd2.tar
curunir-c33aea37f26d9779132a4126de0b62245654cbd2.zip
mensa: Added &eacute; entity
-rw-r--r--modules/mensa.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/mensa.py b/modules/mensa.py
index 2e073d3..1baf60f 100644
--- a/modules/mensa.py
+++ b/modules/mensa.py
@@ -102,13 +102,14 @@ class Module(ModuleBase):
s = s.replace('&uuml;', 'ü')
s = s.replace('&Uuml;', 'Ü')
s = s.replace('&szlig;', 'ß')
- s = s.replace('&amp;', '&')
- s = s.replace('&lt;', '<')
- s = s.replace('&gt;', '>')
- s = s.replace('&quot;', '"')
+ s = s.replace('&eacute;', 'é')
s = s.replace('&ldquo;', '“')
s = s.replace('&bdquo;', '„')
s = s.replace('&ndash;', '–')
+ s = s.replace('&quot;', '"')
+ s = s.replace('&lt;', '<')
+ s = s.replace('&gt;', '>')
+ s = s.replace('&amp;', '&')
s = s.replace('<br />', ' ')
s = re.sub(r'-\s+', '-', s)
s = re.sub(r'\s+', ' ', s)