Revision 504
Added by Matthias over 17 years ago
frontend.functions.php | ||
---|---|---|
84 | 84 |
$foo = preg_replace('/('.$string.')/i', '<span class="highlight">$1</span>',$foo); |
85 | 85 |
} |
86 | 86 |
$foo = strtr($foo, array("!,,!"=>"<", "!,,,!"=>">", "!,,,,!"=>"&", "!,,,,,!"=>""", "!,,,,,,!"=>"'")); |
87 |
//$foo = umlauts_to_defcharset($foo, 'UTF-8'); |
|
87 | 88 |
if(DEFAULT_CHARSET != 'utf-8') { |
88 |
$foo = umlauts_to_defcharset($foo, 'UTF-8');
|
|
89 |
$foo = umlauts_to_entities($foo, 'UTF-8');
|
|
89 | 90 |
} |
90 | 91 |
return $foo; |
91 | 92 |
} |
Also available in: Unified diff
Fixed converting issue with some ISO-charsets and speeded up converting on large pages (thanks to Thorn)