I made this simple function to filter data. I add characters that I allow to include, but I donβt know how to add the / character, as well
public function filter($text) { return preg_replace('/[^^a-zA-Z0-9#@:_(), .!@ " ]/','',$text); }
source share