htmlspecialchars是把',",<,>之类的html实体化explode是切割字符窜去掉字符的话str_replace('str','',$str);但是,要避免影响的话,用addslashes处理一下就行了,没必要去掉的