【发布时间】:2013-05-09 04:14:26
【问题描述】:
It seems that it is best to use the & escape,而不是简单地输入与号 (&)。
但是,在 WordPress 等 CMS 或手动硬编码网站上撰写博客文章时,我们是否应该将 X/HTML character entity references 用于破折号和其他常见印刷字符?
例如:
–是 en dash (–)
—是 em dash (—)
如果我们不这样做会有什么风险?
为什么hyphen (-) 从来不写成-,而是直接从键盘输入HTML? (假设它是连字符,而不是minus sign。)
【问题讨论】:
-
我不知道,我有太多的编码问题没有勇气使用真实的字符。我猜这更像是 FUD。
标签: character-encoding escaping character special-characters html-escape-characters