reverse mysql_real_escape_string

后端 未结 3 828
北恋
北恋 2021-02-19 08:28

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.

W

3条回答
  •  生来不讨喜
    2021-02-19 08:47

    Who says?

    $keyword = "TEST'TEST";
    
    $result1 = mysql_real_escape_string($keyword);
    echo $result1 --> TEST\'TEST
    
    $result2 = nl2br(stripslashes($result));
    echo $result2 --> TEST'TEST
    

提交回复
热议问题