Explorar el Código

add escape around _renderItem in SidebarSearch.js

REJack hace 4 años
padre
commit
da94ddd415
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      build/js/SidebarSearch.js

+ 1 - 1
build/js/SidebarSearch.js

@@ -195,7 +195,7 @@ class SidebarSearch {
   }
 
   _addNotFound() {
-    $(SELECTOR_SEARCH_RESULTS_GROUP).append(this._renderItem(this.options.notFoundText, '#', []))
+    $(SELECTOR_SEARCH_RESULTS_GROUP).append(escape(this._renderItem(this.options.notFoundText, '#', [])))
   }
 
   // Static