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