summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/mensa.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/mensa.py b/modules/mensa.py
index 5faa956..650eafa 100644
--- a/modules/mensa.py
+++ b/modules/mensa.py
@@ -106,11 +106,13 @@ class Module(ModuleBase):
s = s.replace('&lt;', '<')
s = s.replace('&gt;', '>')
s = s.replace('&quot;', '"')
+ s = s.replace('&ldquo;', '“')
s = s.replace('<br />', ' ')
s = re.sub(r'-\s+', '-', s)
s = re.sub(r'\s+', ' ', s)
s = re.sub(r'([a-zäöüß])-([a-zäöüß])', r'\1\2', s)
- s = re.sub(r'<span[^>]*>(.+?)</span>', r'\1', s)
+ s = re.sub(r'<img[^>]*logo_bio[^>]*>', 'Bio', s)
+ s = re.sub(r'<[^>]*>', '', s)
return s
meals = map(unescape, meals)