Merge "Sanitation of metadata passed from Django"

This commit is contained in:
Jenkins 2015-05-06 06:33:17 +00:00 committed by Gerrit Code Review
commit b2c45e212b

View File

@ -11,8 +11,8 @@
existing="existing"
model="tree"></hz-metadata-tree>
<script type="text/javascript">
var existing_metadata = {{ existing_metadata|safe }};
var available_metadata = {{ available_metadata|safe }};
var existing_metadata = JSON.parse('{{ existing_metadata|escapejs }}');
var available_metadata = JSON.parse('{{ available_metadata|escapejs }}');
</script>
{% endblock %}