diff --git a/platypush/backend/http/templates/index.html b/platypush/backend/http/templates/index.html index d7a7fce5..4c7a31d1 100644 --- a/platypush/backend/http/templates/index.html +++ b/platypush/backend/http/templates/index.html @@ -17,10 +17,9 @@ has_ssl: {{ 'true' if has_ssl else 'false' }}, templates: JSON.parse('{{ utils.to_json(templates)|safe }}'), scripts: JSON.parse('{{ utils.to_json(scripts)|safe }}'), - procedures: JSON.parse('{{ procedures.replace("\'", "\\\'")|safe }}'), + procedures: JSON.parse({{ utils.to_json(procedures)|safe }}), }; - var __plugins__ = JSON.parse('{{ utils.to_json(plugins)|safe }}'); var __backends__ = JSON.parse('{{ utils.to_json(backends)|safe }}');