CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Feature #13726

show the found expression in bold

Added by Stefan Busemann about 2 years ago. Updated almost 2 years ago.

Status:New Start date:2011-03-09
Priority:Should have Due date:
Assignee:Stefan Busemann % Done:

0%

Category:autocomplete
Target version:-
Votes: 0

Description

Den gefundenen Ausdruck fett anzeigen:
--

function wrapToList($string, $mode = 'li') {
if($mode=='li') {
$tag = 'li';
eregi('('. $this->search. ')', $string, $regs);
foreach ($regs AS $reg) {
$string = str_replace($reg, '<b>'. $reg. '</b>', $string);
}
} else {
$tag = 'ul';
}
return '<'.$tag.'>'.$string.'</'.$tag.'>';
}

History

Updated by Alex Kellner almost 2 years ago

  • Target version deleted (1.4)

Also available in: Atom PDF