Fix #8380: html search: tags for search result are broken

This commit is contained in:
Takeshi KOMIYA 2021-05-09 22:14:04 +09:00
parent f73e061d2b
commit 75161478c7
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,8 @@ Features added
Bugs fixed
----------
* #8380: html search: tags for search result are broken
Testing
--------

View File

@ -509,7 +509,7 @@ var Search = {
var excerpt = ((start > 0) ? '...' : '') +
$.trim(text.substr(start, 240)) +
((start + 240 - text.length) ? '...' : '');
var rv = $('<p class="context"></div>').text(excerpt);
var rv = $('<p class="context"></p>').text(excerpt);
$.each(hlwords, function() {
rv = rv.highlightText(this, 'highlighted');
});