¿Does anyone know how to clean up an input field so when it´s submitted to the database, there is no spaces, dots, commas, etc.?
We´ve an input where we ask for a VAT ID and we need it without any character in the middle or at the end.
For example: some users insert the VAT ID like “BE.857.98-67” but I need just the “BE8579867”.
Thanks a lot.