mardi 30 septembre 2014

Remove illegal chars from multilanguage string


Vote count:

0




How can I remove illegal chars from multilanguage string, such as <>'"?* etc.?


I can't just use



$allow = "/[^abcdefghijklmnopqrstuvwxyz0123456789-]+/";
$q = preg_replace($allow, "", $q);


I need this to use on a full name field with multilanguage support.



asked 49 secs ago







Remove illegal chars from multilanguage string

Aucun commentaire:

Enregistrer un commentaire