Possible Duplicate:
Selecting HTML Comments with jQuery
Ajax functions like .load() strip out comments from the HTML. How can I keep the comments?
We are doing an AJAX call which is result is coming via
$('#page_section').html(result);
The problem is that the result is being stripped from all the HTML comments we have in there.
We need the HTML comments to stay there since they contain JSON objects which we need later by our CMS.
Any idea way to prevent HTML comments from being stripped with using .html()
.
Thanks!