diff --git a/build/js/SidebarSearch.js b/build/js/SidebarSearch.js
index 3e8fc5844..2949e239b 100644
--- a/build/js/SidebarSearch.js
+++ b/build/js/SidebarSearch.js
@@ -101,7 +101,7 @@ class SidebarSearch {
this._addNotFound()
} else {
endResults.each((i, result) => {
- $(SELECTOR_SEARCH_RESULTS_GROUP).append(this._renderItem(escape(result.name), escape(result.link), escape(result.path)))
+ $(SELECTOR_SEARCH_RESULTS_GROUP).append(this._renderItem(escape(result.name), escape(result.link), result.path))
})
}
@@ -160,6 +160,7 @@ class SidebarSearch {
_renderItem(name, link, path) {
path = path.join(` ${this.options.arrowSign} `)
+ name = unescape(name)
if (this.options.highlightName || this.options.highlightPath) {
const searchValue = $(SELECTOR_SEARCH_INPUT).val().toLowerCase()
@@ -169,7 +170,7 @@ class SidebarSearch {
name = name.replace(
regExp,
str => {
- return `${str}`
+ return `${str}`
}
)
}
@@ -178,20 +179,26 @@ class SidebarSearch {
path = path.replace(
regExp,
str => {
- return `${str}`
+ return `${str}`
}
)
}
}
- return `
-