I'm having an issue.
I have a page, where the user enters data. I want the user to be able to enter simple HTML tags (<em></em> <strong></strong> etc.). I also need to handle apostrophies and quotes. This data is collected and sent to a database.
Now, after the user enters the data (and it is sent to the database), I want the output page to display the data entered with the HTML tags applied. Such as:
Input: i'm "inputting" <em>my</em> <strong>entered</strong> data
Output: i'm "inputting" my entered data
I've looked up htmlentities() and htmlspecialchars() but I am missing something.
Help is REALLY appreciated. Thank you!
Lisa