🐛 [[ path 没有转义

This commit is contained in:
Vanessa 2022-06-20 20:47:40 +08:00
parent bef7a12d7a
commit bd8254945d
2 changed files with 2 additions and 2 deletions

View file

@ -328,7 +328,7 @@ export const hintRef = (key: string, protyle: IProtyle, isQuick = false): IHintD
<svg class="b3-list-item__graphic popover__block" data-id="${item.id}"><use xlink:href="#${iconName}"></use></svg> <svg class="b3-list-item__graphic popover__block" data-id="${item.id}"><use xlink:href="#${iconName}"></use></svg>
<span class="b3-list-item__text">${item.content}</span> <span class="b3-list-item__text">${item.content}</span>
</div> </div>
<div class="b3-list-item__meta">${item.hPath}</div>`, <div class="b3-list-item__meta">${escapeHtml(item.hPath)}</div>`,
}); });
}); });
if (isQuick) { if (isQuick) {

View file

@ -310,7 +310,7 @@ ${unicode2Emoji(emoji.unicode, true)}</button>`;
<svg class="b3-list-item__graphic popover__block" data-id="${item.id}"><use xlink:href="#${iconName}"></use></svg> <svg class="b3-list-item__graphic popover__block" data-id="${item.id}"><use xlink:href="#${iconName}"></use></svg>
<span class="b3-list-item__text">${item.content}</span> <span class="b3-list-item__text">${item.content}</span>
</div> </div>
<div class="b3-list-item__meta">${item.hPath}</div></button>`; <div class="b3-list-item__meta">${escapeHtml(item.hPath)}</div></button>`;
}); });
if (searchHTML === "") { if (searchHTML === "") {
searchHTML = `<button class="b3-list-item b3-list-item--two fn__block" data-value="">${window.siyuan.languages.emptyContent}</button>`; searchHTML = `<button class="b3-list-item b3-list-item--two fn__block" data-value="">${window.siyuan.languages.emptyContent}</button>`;