Skip to content

Commit

Permalink
Update utilities.php
Browse files Browse the repository at this point in the history
Fixes #75
  • Loading branch information
ajaydsouza authored Dec 18, 2021
1 parent f569440 commit 8d4e382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/utilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ function bsearch_get_credit_link() {
function bsearch_highlight( $input, $keys ) {

$reg_ex = '/(?!<[^>]*?>)(' . implode( '|', $keys ) . ')(?![^<]*?>)/iu';
$output = preg_replace( $reg_ex, '<span class="bsearch_highlight">$1</span>', $input );
$output = preg_replace( $reg_ex, '<span class="bsearch_highlight">$1</span>', html_entity_decode( $input ) );

return $output;
}
Expand Down

0 comments on commit 8d4e382

Please sign in to comment.