diff --git a/saturn/calendar/event.py b/saturn/calendar/event.py index 036ae29..3e2f3c2 100644 --- a/saturn/calendar/event.py +++ b/saturn/calendar/event.py @@ -31,7 +31,12 @@ class Event: @property def description(self): - return self._description + if self._description is None: return None + return re.sub( + r'(https?://\S+)', + r'\1', + self._description, + ) @property def location(self): diff --git a/saturn/server/templates/index.html b/saturn/server/templates/index.html index ac5d43f..ea4d1ed 100644 --- a/saturn/server/templates/index.html +++ b/saturn/server/templates/index.html @@ -50,7 +50,7 @@
{% if event.description %} - {{ event.description }} + {{ event.description | safe }} {% endif %}