我可以在元标记中使用 HTML 个字符实体吗?

Can I use HTML character entities in meta tags?

我的网站有两种语言 - 英语和中文。在使用 UTF-8 字符集的英文主页中,我有,例如:

<meta name="description" content="Available in English and Chinese">

出现在搜索结果中。我想将其更改为:

<meta name="description" content="Available in English and &#20013;&#25991;">

...其中 &#20013;&#25991; 是 "Chinese" 的 ISO 实体。在搜索结果中会显示为“中文”吗?我无法将“中文”直接粘贴到 Textpad* 中的 HTML 文件中(粘贴为 ??)。


* 更新 之前使用的是 Textpad 7。现在有 Textpad 8,"operates internally in Unicode UTF-16 encoding" (https://www.textpad.com/support/relnotes.html#v802),并允许我将“中文”粘贴到元标记。

Can I use HTML character entities in meta tags?

是的。在 HTML 中不能使用实体的地方很少而且相距甚远(在脚本和样式元素的主体中是 spring 唯一需要注意的地方)。

Would that be rendered as "中文" in the search results?

假设:

  • 搜索引擎没有与此相关的错误
  • 搜索引擎的算法选择了要显示的描述