ajax - Any alternate of drupal_json for non-JSON output -


In an AJAX call in Drupal it is recommended to use drupal_json () to send data to the client in general. This function converts raw data into JSON with HTML encoding.

I want to send HTML data without encoding to the client. For this, I am using the following code:

  print $ html_output; Exit (0);  

Is there any recommendation or best way to do this?

If you have only returned HTML output from the menu callback, then the following code is correct:

  print $ html_output; Module_invoke_all ('exit'); Go out();  

If you want DROP to block your output output normally, then the code will need to be changed to:

  back $ html_output;  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -