Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
23b1702a
Commit
23b1702a
authored
Sep 25, 2017
by
Bram in 't Zandt
Browse files
Unescape the descriptionfield of an event so HTLM entities are decoded.
parent
c9bcbe55
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/events/api/serializers.py
View file @
23b1702a
...
...
@@ -51,7 +51,7 @@ class CalenderJSSerializer(serializers.ModelSerializer):
return
instance
.
title
def
_description
(
self
,
instance
):
return
strip_tags
(
instance
.
description
)
return
unescape
(
strip_tags
(
instance
.
description
)
)
def
_background_color
(
self
,
instance
):
pass
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment