Hi, I have the following function which does not strip everything i need. function StripAll($value) { $value = preg_replace('/[\r\n\t]+/', '', $value); $value = preg_replace("/[rn]+[st]*[rn]+/","n",$value); $value = stripslashes($value); $value = mysql_real_escape_string($value); $value = trim($value); $value = strip_tags($value); $value = str_replace(",", "", $value); $value = str_replace("'", "", $value); $value = str_replace(";", "", $value); $value = str_replace("&", " ", $value); $value = str_replace("(", " ", $value); $value = str_replace(")", " ", $value); return $value; } PHP: This still leaves in rn , full stops and brackets any ideas what is wrong with the function? Cheers, Adam
i think there is a problem with regular expression there couldnt point it. why dont you use a free class like html2txt() function