diff --git a/combo_plugin_gnm/templatetags/gnm.py b/combo_plugin_gnm/templatetags/gnm.py index 4d4bf15..fd9f641 100644 --- a/combo_plugin_gnm/templatetags/gnm.py +++ b/combo_plugin_gnm/templatetags/gnm.py @@ -821,20 +821,6 @@ def gnm_airquality_map(context): return context -_json_script_escapes = { - ord('>'): '\\u003E', - ord('<'): '\\u003C', - ord('&'): '\\u0026', -} - - -@register.filter(is_safe=True) -def json_script(value, element_id): - json_str = json.dumps(value, cls=DjangoJSONEncoder) - json_str = json_str.replace('>', '\\u003E').replace('<', '\\u003C').replace('&', '\\u0026') - return format_html('', element_id, mark_safe(json_str)) - - @register.simple_tag def get_goto_cell(page, request): try: