From 0e26d4499b9c3d5a6b0d81b0e476abb81eff61b3 Mon Sep 17 00:00:00 2001 From: yparitcher Date: Thu, 12 Oct 2023 08:46:37 -0400 Subject: [PATCH] util.htmlEntitiesToUtf8: add some more semi common entities (#10979) --- frontend/util.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/util.lua b/frontend/util.lua index 20f6defdb..0dbe0e2e7 100644 --- a/frontend/util.lua +++ b/frontend/util.lua @@ -1120,6 +1120,11 @@ local HTML_ENTITIES_TO_UTF8 = { {"<", "<"}, {">", ">"}, {""", '"'}, + {"‘", '‘'}, + {"’", '’'}, + {"“", '“'}, + {"”", '”'}, + {"—", '—'}, {"'", "'"}, {" ", "\u{00A0}"}, {"&#(%d+);", function(x) return util.unicodeCodepointToUtf8(tonumber(x)) end},