TinyMCE + Jquery + PHP + AJAX Special chars issue

后端 未结 1 1919
耶瑟儿~
耶瑟儿~ 2021-01-25 10:51

i have a TinyMCE implementation on my website that works great. But if the user enters a special char like \"<\" the query send to my MySQL

1条回答
  •  再見小時候
    2021-01-25 11:54

    Those ampersands are messing with the URL format for the data property. Why not change it to something like this instead?

    data: {
        "e_text": $('#e_text').val(),
        "e_title": $('#extra_title').val()
    }
    

    0 讨论(0)
提交回复
热议问题