Skip to content

Commit d663f30

Browse files
committed
Use .text() to insert the search string
1 parent 949e65d commit d663f30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static/shared/js/documentation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ $(function() {
238238

239239
// Check if there are any results. If not, show placeholder and exit
240240
if (searchHits.length < 1) {
241-
$('<li class="placeholder">No results for <em>' + searchString + '</em></li>').appendTo("#search-results");
241+
$('<li class="placeholder">No results for <em></em></li>').appendTo("#search-results").find("em").text(searchString);
242242
return;
243243
}
244244

0 commit comments

Comments
 (0)