Fixing build issue.
This commit is contained in:
parent
3f10d9d8ed
commit
a142c0cd2a
|
@ -30,7 +30,7 @@ const entityMap = {
|
||||||
|
|
||||||
function escapeHtml(html: string) {
|
function escapeHtml(html: string) {
|
||||||
return String(html).replace(/[&<>"'`=]/g, function (s) {
|
return String(html).replace(/[&<>"'`=]/g, function (s) {
|
||||||
return entityMap[s]
|
return entityMap[s as keyof typeof entityMap]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue