Cure for 'The string “--” is not permitted within comments.' exception?

本小妞迷上赌 提交于 2019-11-28 09:00:59

By definition:

A comment starts and ends with "--", and does not contain any occurrence of "--".

So no, your XHTML is not well-formed because you can't use -- anywhere inside a comment. Can you replace it by something else? or maybe put a space in-between, like this: - -. There really isn't a clean solution to this problem, any alternatives involve messing around with placeholders, encodings, etc.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!