util.htmlEntitiesToUtf8: add some more semi common entities (#10979)

reviewable/pr11010/r1
yparitcher 7 months ago committed by GitHub
parent d4421130f8
commit 0e26d4499b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1120,6 +1120,11 @@ local HTML_ENTITIES_TO_UTF8 = {
{"&lt;", "<"},
{"&gt;", ">"},
{"&quot;", '"'},
{"&lsquo;", ''},
{"&rsquo;", ''},
{"&ldquo;", ''},
{"&rdquo;", ''},
{"&mdash;", ''},
{"&apos;", "'"},
{"&nbsp;", "\u{00A0}"},
{"&#(%d+);", function(x) return util.unicodeCodepointToUtf8(tonumber(x)) end},

Loading…
Cancel
Save