Using mysql_real_escape_string for displayed content

Posted on 16th Feb 2014 by admin

On my website users can input data into a textarea and it will store it in the mysql database. But, I am unsure on how to prevent against mysql injections without using mysql_real_escape_string since I need to be able to display " " and / if the user enters it.

Basically similar to how a forum post displays text data is what I need to do

Other forums