Ajax functions like .load() strip out comments from the HTML. How can I keep the comments?

前端 未结 1 1198
花落未央
花落未央 2021-01-13 16:19

For example, $(\'#some-div\').load(\'http://foo.bar #content\') will retrieve #content from http://foo.bar but with all HTML

热议问题