HTML Comments Encoding Issue Jacob Gerber 创建于 2024年08月19日 22:32 See the image below.When I comment lines using keyboard shortcuts in PhpStorm, double hypens (--) are encoded differently. What's the reason?
Double hyphens shouldn't be used inside a comment; that's why they get escaped.
See https://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.4
> A common error is to include a string of hyphens ("---") within a comment. Authors should avoid putting two or more adjacent hyphens inside comments.