Hi all,
I've got a form which accepts user input. That data is then written to a MySQL database using a PDO prepared statement and then the same data is sent in an email to 1 specific email address.
My question is do I need to sanitize the data still even though it's going through a PDO prepared statement?
Does user inputted data need to be sanitized for sending via email?
Currently I'm running user inputted data through the function FILTER_SANITIZE_STRING however when the person receives the email it has the ASCII value instead of quotation marks for example. Therefore, do I need to just run everything through htmlspecialchars_decode and stripcslashes just for sending the email after the data has been inserted into the database?