Escape entities in pathBar node items

This commit is contained in:
Djamil Legato
2019-06-07 16:51:09 -07:00
parent 3a224b36fa
commit f34e7b53e8
2 changed files with 2 additions and 2 deletions

View File

@@ -301,7 +301,7 @@ class Finder {
this.pathBar.append(` this.pathBar.append(`
<span class="breadcrumb-node" ${item.type === 'dir' ? `data-breadcrumb-node="${itemKeys}"` : ''}> <span class="breadcrumb-node" ${item.type === 'dir' ? `data-breadcrumb-node="${itemKeys}"` : ''}>
<i class="fa fa-fw ${this.getIcon(item.type)}"></i> <i class="fa fa-fw ${this.getIcon(item.type)}"></i>
<span class="breadcrumb-node-name">${item[this.config.labelKey]}</span> <span class="breadcrumb-node-name">${$('<div />').text(item[this.config.labelKey]).html()}</span>
${!isLast ? '<i class="fa fa-fw fa-chevron-right"></i>' : ''} ${!isLast ? '<i class="fa fa-fw fa-chevron-right"></i>' : ''}
</span> </span>
`); `);

File diff suppressed because one or more lines are too long