summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--luigi-template.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/luigi-template.js b/luigi-template.js
index 439bbbe..cb67ebf 100644
--- a/luigi-template.js
+++ b/luigi-template.js
@@ -113,7 +113,7 @@ LuigiTemplate = (function() {
if (v === undefined || v === null)
return '';
- return (v || '').replace(/(['"<>&])/g, function(s) {
+ return v.toString().replace(/(['"<>&])/g, function(s) {
return LUT[s];
});
};