Code: Select all
$bodyToDatabase = nl2br(htmlentities($bodyToDatabase));The htmlentities was to show any "<" or ">" that may have been user created in an e-mail.
Now my problem is that HTML e-mails are showing all the HTML tags, which isn't what I want. I think the solution is to handle the data differently depending on whether the HTML is plain text or whether it is HTML. How would PHP determine if an e-mail was a HTML e-mail or plain text?
Regards,