mirror of https://github.com/ColorlibHQ/AdminLTE
escape results in SidebarSearch
parent
da94ddd415
commit
480b63121c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue