mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
use html5 mark tag to highlight search parameter
This commit is contained in:
parent
76f2358f3b
commit
0d15cb02cd
@ -222,7 +222,7 @@ class DBText extends DBString
|
||||
// Maintain case of original string
|
||||
$summary = preg_replace(
|
||||
'/' . preg_quote($stringPiece, '/') . '/i',
|
||||
'<span class="highlight">$0</span>',
|
||||
'<mark>$0</mark>',
|
||||
$summary
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user