Move all escaping from Ajax callback to api CRM-12765