I am trying to write a method that is the same as mysqli_real_escape_string in PHP. It takes a string and escapes any \'dangerous\' characters. I have looked fo
mysqli_real_escape_string
Take a look at escape_string / quote method in Mysql class here