In my Ajax request (using jQuery) I am returning a JSON response.
So json.Html will have a string of HTML I want to append inside a div.
On the server side,
When creating JSON with HTML you have to escape then double-quote character, and also the CLRF character and it will return HTML fine.
I worked with a pl/sql in oracle procedure that was called from a AJAX request. If you would like, i can post the implementation.
You should test your output at http://www.jsonlint.com/ to see if its valid.
So
{
"id": "1",
"html_value": "test link returnin html code"
}
is diffrent from
{
"id": "1",
"html_value": "test link returnin
html code"
}
because of the CLRF character. You should replace that in the server side with or .
Hope this helps, Alex