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() this._addNotFound()
} else { } else {
endResults.each((i, result) => { 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() { _addNotFound() {
$(SELECTOR_SEARCH_RESULTS_GROUP).append(escape(this._renderItem(this.options.notFoundText, '#', []))) $(SELECTOR_SEARCH_RESULTS_GROUP).append(this._renderItem(this.options.notFoundText, '#', []))
} }
// Static // Static