Skip to content

Commit

Permalink
fix showing html in search preview
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Jul 14, 2023
1 parent 78258e2 commit cd8064a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/thruk/javascript/thruk-3.08.2.js
Original file line number Diff line number Diff line change
Expand Up @@ -8896,7 +8896,7 @@ var ajax_search = {
if(ajax_search.regex_matching && sub_pattern != "*") {
var re = new RegExp('('+sub_pattern+')', "gi");
// only replace parts of the string which are not bold yet
var parts = name.split(/(<b>.*?<\/b>)/);
var parts = name.split(/(<b[^>]*>.*?<\/b>)/);
jQuery.each(parts, function(index2, part) {
if(!part.match(/^<b>/)) {
parts[index2] = part.replace(re, "<b class='hint'>$1<\/b>");
Expand Down

0 comments on commit cd8064a

Please sign in to comment.