java - HTML content in JSON object -


when try send html content in json object response servlet, ie 10 not receive html content tags. response type application/json

java:

string summaryrpthtml = sum.generatesummarytable(summary, false); jsonobj.put("haserror", false);  jsonobj.put("message", "file proceesed");  jsonobj.put("summary", summaryrpthtml );  

javascript :

client: "processfileservlet",  function(responsejson) {    system.hideloadingscreen("");    responsejson = eval(responsejson);    responsejson.summary; // nothing  } 

do json_encode html sending , using json decoder on java side?

json_encode($your_html) 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -