Skip to content

Commit ba4f5ed

Browse files
committed
Merge pull request github#77 from github/no-search-js
Use .text() to insert the search string
2 parents 38b757d + d663f30 commit ba4f5ed

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)