Ruby: Escaping special characters in a string

后端 未结 5 1129
终归单人心
终归单人心 2021-01-04 22:40

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

5条回答
提交回复
热议问题