所有 html 个实体的列表作为名称值对

List of all html entities as name value pairs

我正在尝试创建 css 图标实用程序,它们使用 html 实体作为图标内容。这是一个 set of examples in my github repository,这是一个单独的例子:

.u-icon-olt {
    content: "⧀";
}


.u-icon-ogt {
    content: "⧁";
}

到目前为止,我一直在根据需要一个一个地添加每个实体,但是如果我有一个实体列表作为键值对 [olt: ⧀, ogt: ⧁, ...] 那么我可以生成上面的CSS。有人知道是否存在这样的列表吗?

如果必须这样做,我会解析 reference at w3c

页面如下所示 parsed into JSON

here's the code我曾经解析过它(在python)。