diff options
-rw-r--r-- | modules/mensa.py | 4 |
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('<', '<') s = s.replace('>', '>') s = s.replace('"', '"') + s = s.replace('“', '“') 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) |