sanitize php strings
Simple function to help you sanitizing the php string. This function will remove any non alphanumeric character.
1 2 3 4 |
example:
1 2 | echo sanitize('café'); /* => café <em>/ echo sanitize('|c/(!=)a f é'); /</em> => café */ |