Are HTML entities necessary for anything besides e

2019-05-26 12:02发布

Obviously < and > are necessary for escaping user input. But is there any reason to use, say, ™ instead of ™?

标签: html encoding
1条回答
Lonely孤独者°
2楼-- · 2019-05-26 12:31

No. This is usually a product of people confused about either encoding or their OS's input methods. If you use a modern encoding (e.g. UTF-8) and learn how to type special characters, you'll very rarely have to go beyond <, >, and &. For instance, with the Compose key, entering ™ usually requires just Compose-t-m.

See my previous answer on this.

查看更多
登录 后发表回答