Fix images and lots of other string escaping not working
This commit is contained in:
parent
9a7142ea9a
commit
339bb8b76c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue