As sanitize seems to be deprecated since CakePHP 2.4 I'm wondering what's the best way to sanitize data in CakePHP.
The documentation says you can accomplish the same tasks using other parts of CakePHP, native PHP functions, or other libraries. But it doesn't mention which PHP functions or which other parts of CakePHP.
I'm having troubles saniziting data from a mail that will get added into the DB. Without sanitation the query would fail:
SQLSTATE[HY000]: General error: 1366 Incorrect string value: '\xE2?\xAC\xC5?C... (file://xe2/?\xAC\xC5?C...)' for column 'body' at row 1"}}