Menu
I have a textarea field and I want users to be able to enter some basic HTML, for example, <br /> <strong> etc.
I then want to store this HTML in a mysql database.
When I retrieve the data out of the database, I want the HTML to be working. So if in the database <strong>My Name</strong> is stored, I want it to display on the page in bold text without the html tags.
Now I have tried htmlentites, htmlspecialchars, and mysql_real_escape_string to put it in the database, and the 2 html decodes to get it out.
What is honestly the best way to do what I am trying to achieve?