Revision 820
Added by thorn over 17 years ago
| functions-utf8.php | ||
|---|---|---|
| 407 | 407 |
$str = str_replace(''', ''', $str);
|
| 408 | 408 |
$str = preg_replace('/&#([0-9]+);/e', "dechex('$1')", $str);
|
| 409 | 409 |
// maybe there are some > < ' " & left, replace them too |
| 410 |
$entities = array('>'=>'_','<'=>'_','''=>'_','"'=>'_','&'=>'_',' '=>' ');
|
|
| 410 |
$entities = array('>'=>'','<'=>'','''=>'','\''=>'','"'=>'','&'=>'',' '=>' ');
|
|
| 411 | 411 |
$str = strtr($str, $entities); |
| 412 | 412 |
|
| 413 | 413 |
return($str); |
Also available in: Unified diff
ASP: off per default. CAPTCHA: removed unneeded $admin. Filename: just convert chars like quote, doublequote, < > & to empty string.