ÁRVÍZTŰRŐ TÜKÖRFÚRÓGÉP"; if (isset($_POST['search']) and trim($_POST['search']) != '') { $search = $_POST['search']; if (get_magic_quotes_gpc()) { $search = stripslashes($search); } $to = array( '[aá]', '[eé]', '[oóöő]', '[ií]', '[uúüű]' ); $from = array_map(create_function('$v', 'return "/$v/u";'),$to); $search =preg_replace($from,$to,preg_quote($search)); $msg = preg_replace('/'.$search.'/iu',"\\0",strip_tags($msg)); } ?>