diff --git a/assets/js/hooks/cell_editor/live_editor/highlight.js b/assets/js/hooks/cell_editor/live_editor/highlight.js index 7d1d78f6a..a138593e3 100644 --- a/assets/js/hooks/cell_editor/live_editor/highlight.js +++ b/assets/js/hooks/cell_editor/live_editor/highlight.js @@ -24,7 +24,7 @@ export function highlight(code, language) { tree, getHighlightStyle(), (code, classes) => { - html += `${code}`; + html += `${escapeHtml(code)}`; }, () => { html += "
";