Hi, i have a contact form and i have been playing with nl2br as well as stripslashes, htmlspecialchars, htmlentities. To try to clean this up, i am obviously doing it wrong, is there a special order they need to be in if i mix them.
here is what i have right now..
and here is a sample of what is on the form when i get it in the mail.
how would i go about cleaning up that result.
here is what i have right now..
Code:
$message = stripslashes(htmlspecialchars($message));
and here is a sample of what is on the form when i get it in the mail.
Customer Text: now lets see what happens when i press return right here&nbsp;<br />&nbsp;<br />now lets see about spaces &nbsp;<br />&nbsp;<br />now lets try <br />
how would i go about cleaning up that result.
Comment