Skip to content

Commit a8eca29

Browse files
authored
Escape HTML in Show JS output (#69)
1 parent 62aa3d3 commit a8eca29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ $(function() {
368368
if ($("#showjs").is(":checked")) {
369369
$('#column2')
370370
.empty()
371-
.append($('<pre>').append($('<code>').append(res.js)));
371+
.append($('<pre>').append($('<code>').text(res.js)));
372372
} else {
373373
(backend.bundleAndExecute || defaultBundleAndExecute)(res.js, backend);
374374
}

0 commit comments

Comments
 (0)