HTML Comments Encoding Issue

See the image below.

When I comment lines using keyboard shortcuts in PhpStorm, double hypens (--) are encoded differently. What's the reason?

 

0

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.

0

请先登录再写评论。