I have a piece of data that is large and will probably contain quotes and double quotes.
I\'m using mysql_real_escape_string() to store it safely.
mysql_real_escape_string()
W
Who says?
$keyword = "TEST'TEST"; $result1 = mysql_real_escape_string($keyword); echo $result1 --> TEST\'TEST $result2 = nl2br(stripslashes($result)); echo $result2 --> TEST'TEST