Fix missing JSON escaping in html attribute

Started here: http://forum.phalconeye.com/index.php?p=/discussion/17/how-to-pass-js-parameters-to-formelementckeditor