Members on my website can send instant messages to eachother.
When they use text a-z all is ok
If they use " ' they get scrambled messages like (\"e\) etc..
I know that eregi_replace can stop this, but don't know howto code it that way.
Please advice me on this........
Here is my eregi so far.
Thanks
if ($ac == "sent1" ){
$text = eregi_replace("<", " GEEN < TOEGESTAAN", $text);
$text = eregi_replace("&#", ":P", $text);
$text = eregi_replace("'", "'", $text);
$text = eregi_replace("\"", """, $text);
$text = preg_replace('/\015\012|\015|\012/',' ',$text);
$text = htmlspecialchars($text);
// $text = htmlentities($text);
$text = addslashes($text);