Dont know if this helps or if this is what you want but :
function rep2($tekst) {$tekst = str_replace('<','<',$tekst);$tekst = str_replace('>','>',$tekst);$tekst = str_replace('"','\"',$tekst);$tekst = str_replace(''',"'",$tekst);$tekst = str_replace('amp;','&',$tekst);return $tekst;}
Just copyed now so just take the function content and insert into the code i gave you if you still use it, if not i cant help you. ->Kristian_C.