add function escapeHTML for preventing add custom row attribute with dou...

add function escapeHTML for preventing adding custom row attribute that contain double quote.

Eg. add custom attribute that value is string [{"id":1,"name":"Test 1"}]
it will be like this ![](http://i.imgur.com/vXjoROR.png)