Grocery CRUD:如果插入一些javascript作为数据库固定输入,则会出错

I use Grocery CRUD (CodeIgniter) and it has an issue when I insert a javascript as a input text. Input:

<script> document.getElementById("demo").innerHTML = "Hello JavaScript!"; </script>

In phpmyadmin:

http://i.stack.imgur.com/As4Bk.png (I can't post image)

after save this record, grocery crud keep showing error popup: enter image description here

The reason this occurs is that the quotes in the script escape the JSON data used to transfer the message.

The asker was able to work around this using HTMLentities to escape the data prior to sending it.