Use html safe IDs for sequences and videos

This commit is contained in:
Calen Pennington
2012-06-27 14:31:35 -04:00
parent de07b8b345
commit c6b477c815
3 changed files with 8 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ class SequenceModule(XModule):
# of script, even if it occurs mid-string. Do this after json.dumps()ing
# so that we can be sure of the quotations being used
params = {'items': json.dumps(contents).replace('</script>', '<"+"/script>'),
'element_id': "-".join(str(v) for v in self.location.list()),
'element_id': self.location.html_id(),
'item_id': self.id,
'position': self.position,
'tag': self.location.category}