diff --git a/static/js/components/SidebarManager.js b/static/js/components/SidebarManager.js index 6c53dd28..a4805dce 100644 --- a/static/js/components/SidebarManager.js +++ b/static/js/components/SidebarManager.js @@ -7,6 +7,7 @@ import { translate } from '../utils/i18nHelpers.js'; import { state } from '../state/index.js'; import { bulkManager } from '../managers/BulkManager.js'; import { showToast } from '../utils/uiHelpers.js'; +import { escapeHtml, escapeAttribute } from './shared/utils.js'; export class SidebarManager { constructor() { @@ -1294,15 +1295,19 @@ export class SidebarManager { const isExpanded = this.expandedNodes.has(currentPath); const isSelected = this.selectedPath === currentPath; + const escapedPath = escapeAttribute(currentPath); + const escapedFolderName = escapeHtml(folderName); + const escapedTitle = escapeAttribute(folderName); + return ` -