Commit 199c9e2f authored by Milan van Stiphout's avatar Milan van Stiphout
Browse files

Strip the tags from the markup in mouseover tooltips

parent b35e10c2
from django.urls import reverse
from django.utils import timezone
from django.utils.html import strip_tags
from rest_framework import serializers
from events.models import Event
......@@ -45,7 +46,7 @@ class CalenderJSSerializer(serializers.ModelSerializer):
return instance.title
def _description(self, instance):
return instance.description
return strip_tags(instance.description)
def _background_color(self, instance):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment