HI,
Normally the htmlSpecialchars() function will do the trick for the &. You could to use it with the second option like this:
htmlSpecialchars($string, ENT_QUOTES);
Else you could try it with a function like this:
function myHtmlSpecialchars($string) {
$string=eregi_replace('"','"',$string);
$string=eregi_replace("'",''',$string);
$string=eregi_replace('<','<',$string;
$string=eregi_replace('>','>',$string);
$string=eregi_replace('&','&',$string);
return $string;
}
Succes, grtz, Joris