escape results in SidebarSearch

pull/3181/head
REJack 2020-11-30 09:42:38 +01:00
parent da94ddd415
commit 480b63121c
1 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ class SidebarSearch {
this._addNotFound()
} else {
endResults.each((i, result) => {
$(this._renderItem(result.name, result.link, result.path)).appendTo(SELECTOR_SEARCH_RESULTS_GROUP)
$(SELECTOR_SEARCH_RESULTS_GROUP).append(this._renderItem(escape(result.name), escape(result.link), escape(result.path)))
})
}
@ -195,7 +195,7 @@ class SidebarSearch {
}
_addNotFound() {
$(SELECTOR_SEARCH_RESULTS_GROUP).append(escape(this._renderItem(this.options.notFoundText, '#', [])))
$(SELECTOR_SEARCH_RESULTS_GROUP).append(this._renderItem(this.options.notFoundText, '#', []))
}
// Static