开发者

Ajax call to .html file stripped out the HTML comments

As the title states, I made an Ajax call to a .html file which included html tags and html comments.

However sometimes (and it's not reproducible every time) the response is returned with all the HTML comments stripped out. Only the HTML tags remain.

The comment tags are essential to the .html file b/c it's开发者_JS百科 part of how we do template rendering.

We run a typical LAMP stack (Apache), if that helps. Does Apache sometimes strip tags randomly from .html files?

Thanks very much in advance.


It's possible that apache strips comments from your HTML files: http://apache.webthing.com/mod_proxy_html/config.html

Have you verified that your ajax responseText does not contain any comments?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜