mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-05 04:46:03 +01:00
Escape entities in pathBar node items
This commit is contained in:
@@ -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>
|
||||||
`);
|
`);
|
||||||
|
|||||||
2
themes/grav/js/admin.min.js
vendored
2
themes/grav/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user