diff --git a/index.html b/index.html index 4baef0e..4dfe64f 100644 --- a/index.html +++ b/index.html @@ -23,11 +23,12 @@ - - - - - + + + + + + diff --git a/js/fileEditor.js b/js/fileEditor.js index c4dff5f..c1dd372 100644 --- a/js/fileEditor.js +++ b/js/fileEditor.js @@ -1,5 +1,5 @@ // editor.js -import { showToast } from './domUtils.js'; +import { escapeHTML, showToast } from './domUtils.js'; import { loadFileList } from './fileListView.js'; function getModeForFile(fileName) { @@ -73,14 +73,14 @@ export function editFile(fileName, folder) { modal.classList.add("modal", "editor-modal"); modal.innerHTML = `
-

Editing: ${fileName}

+

Editing: ${escapeHTML(fileName)}

- +