Revision 776
Added by thorn over 17 years ago
| frontend.functions.php | ||
|---|---|---|
| 76 | 76 |
$foo = entities_to_umlauts($foo, 'UTF-8'); |
| 77 | 77 |
array_walk($arr_string, create_function('&$v,$k','$v = preg_quote($v, \'/\');'));
|
| 78 | 78 |
$search_string = implode("|", $arr_string);
|
| 79 |
$string = entities_to_umlauts($search_string, 'UTF-8'); |
|
| 80 |
$string = strtr($string, $string_ul_umlauts); |
|
| 79 |
$string = strtr($search_string, $string_ul_umlauts); |
|
| 81 | 80 |
// special-feature: '|' means word-boundary (\b). Searching for 'the|' will find 'the', but not 'thema'. |
| 82 | 81 |
$string = strtr($string, array('\\|'=>'\b'));
|
| 83 | 82 |
// the highlighting |
Also available in: Unified diff
fixed issue with highlighting while charset != utf-8