1
0
Fork 0
mirror of synced 2024-07-02 21:10:43 +12:00

Fix images and lots of other string escaping not working

This commit is contained in:
Andrew Kingston 2020-10-12 10:49:21 +01:00
parent a8bef0ccff
commit 47a772a200

View file

@ -11,7 +11,7 @@ const entityMap = {
mustache.escape = text =>
String(text).replace(/[&<>"'`=/]/g, function fromEntityMap(s) {
return entityMap[s]
return entityMap[s] || s
})
export default mustache.render