diff --git a/django/website/hid/templatetags/json_data.py b/django/website/hid/templatetags/json_data.py index 80553c75c25b2ddde870f3923c8fd2601921b6b0..6b40f0fe64289ae0c5d9e54b29db488080d67a0d 100644 --- a/django/website/hid/templatetags/json_data.py +++ b/django/website/hid/templatetags/json_data.py @@ -9,4 +9,4 @@ def json_data(value): """ Django custom template tag used to embed arbitrary values as json within html5 data- attributes. """ - return json.dumps(value).replace("'", "\\'") + return json.dumps(value)