Files
edx-platform/common/templates/xblock_wrapper.html
Ned Batchelder 6928035cd1 Make sure slashes in JSON content don't end script tags. PLAT-462
The string "</script>" in JSON data would end the script element we're
embedding the data in.  To make sure the data doesn't disrupt the
script, we escape the slash as \/ .
2015-03-18 21:55:36 -04:00

9 lines
216 B
HTML

<div class="${' '.join(classes) | n}" ${data_attributes}>
% if js_init_parameters:
<script type="json/xblock-args" class="xblock_json_init_args">
${js_init_parameters}
</script>
% endif
${content}
</div>