When I'm adding a custom field through a plugin, the response suddenly fails when saving a resource:
{"success":true,"message":"","total":0,"data":[],"object":{"id":96,"type":"document","contentType":"text\/html","alias":"blog","published":true,"pub_date":0,"unpub_date":0,"parent":0,"isfolder":true,"richtext":true,"template":38,"menuindex":3,"searchable":true,"cacheable":true,"createdby":1,"createdon":"2014-10-14 18:28:48","editedby":1,"editedon":"2014-10-16 11:14:54","deleted":false,"deletedon":0,"deletedby":0,"publishedon":"2014-10-14 18:32:00","publishedby":1,"donthit":false,"privateweb":false,"privatemgr":false,"content_dispo":0,"hidemenu":false,"class_key":"modDocument","context_key":"web","content_type":1,"uri":"blog\/","uri_override":0,"hide_children_in_tree":0,"show_in_tree":1,"create-resource-token":"123","reloaded":"0","parent-original":"0","parent-cmb":"","syncsite":1,"fltr_resource":"96","fltr_user":"","fltr_from":"","fltr_context_key":"","class":"","fltr_until":"","ext-comp-1058":"20","content_column_1":"<p>Test<\/p>","content_column_2":"","content_column_3":"","content_column_4":"","action":"resource\/update","resource_groups":"[]","preview_url":"http:\/\/websiteurl.com\/blog\/"}}</p>
Check out the content_column_1 value: <p>Test<\/p>
How can it be half encoded? Doesn't matter how I save it, just doesn't end well...when you look at the end of the JSON response it tries to close the P tag, hence a JS failure. How come? Any pointers?