I made this simple function to filter the data. I add the symbols that I allow to be included but I dont know how to add / symbol as well
public function filter($text)
{
return preg_replace('/[^^a-zA-Z0-9#@:_(),.!@" ]/','',$text);
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can either escape it with a backslash:
Or use other characters as delimiters: