Use of double quotes in a 'input type=“text”' value wont work, string stops at double-quote !

后端 未结 4 1200
一生所求
一生所求 2021-02-04 19:14

How can I make it possible for users to use the \'\"\' (double quote) inside a textfield...

Whenever I do use double-quote in the field (the value) then when receiving t

4条回答
  •  无人共我
    2021-02-04 19:34

    Its not the job of the JS to modify the input string, server should make sure it can accept what its getting regardless.

    You could escape out the double quotes with another value either Assci symbol or HTML " etc. before you pass it into your mysql escape function?

提交回复
热议问题