I am using PHP with MySQLi(improved), I just want to know how to securely insert textarea content. My textarea content is using a text editor which has bold, italic, underline and bullet options.
What I want now is when the content is inserted it should preserve the above tags and also securely insert data in the database (PHPMyAdmin). I am confused about sanitizing, stripping etc.,
Please guys give me a brief demo with source code to get the job done as mentioned above.