how will i decode the string in the following line
$("#" + result["DivName"]).append(result["SavedValue"]);
ok i am using this scenario to save myself from the script attack. ok the thing is that if some one rights alert('hi') in the ckeditor . it saves in the database as it is but when i retrieves it i first encode it and then display it. but the thing is that encoded version is not displaying in the div which have a edit button by pressing it a ckeditor will open with the text in the div , yes i am using json.
the bottom line is that the scripts should not execute