diff --git a/src/runtime.js b/src/runtime.js index 32d721a1..621dbfcb 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -206,8 +206,8 @@ function markSafe(val) { function suppressValue(val, autoescape) { val = (val !== undefined && val !== null) ? val : ''; - if(autoescape && typeof val === 'string') { - val = lib.escape(val); + if(autoescape && typeof val === 'string' || lib.isArray(val)) { + val = lib.escape(''+val); } return val;