mysql - PHP Escaping single quote added by mysqli_real_escape_string

one text

Solution:

Do not use mysqli_real_escape_string in the first place.

Bound parameters replace escaping. They don't supplement it.

Using mysqli_real_escape_string and then trying to undo its effects afterwards is just silly.

Source