Skip to content
Snippets Groups Projects
Commit ab0d0c48 authored by Alice Heaton's avatar Alice Heaton :speech_balloon:
Browse files

Escaping single quotes in json embed tag is actually un-necessary (and breaks...

Escaping single quotes in json embed tag is actually un-necessary (and breaks the data) since the single quotes are replaced with html entities.
parent 7fc7702b
No related branches found
No related tags found
No related merge requests found
......@@ -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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment