PHP: best practice. Do i save html tags in DB or store the html entity value?
- by Matt
Hi Guys,
I was wondering about which way i should do the following. I am using the tiny MCE wysiwyg editor which formats the users data with the right html tags. Now, i need to save this data entered into the editor into a database table.
Should i encode the html tags to their corresponding entities when inserting into the DB, then when i get…