From 65d4ae9d0f0f3c6b72c4c606d8066a2abca74db2 Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 22 Jul 2016 15:36:43 -0400 Subject: [PATCH] ssr: cast node.text to string before encoding --- src/server/render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/render.js b/src/server/render.js index 99148274..3db57ef4 100644 --- a/src/server/render.js +++ b/src/server/render.js @@ -84,7 +84,7 @@ export function createRenderFunction ( if (node.tag) { renderElement(node, write, next, isRoot) } else { - write(node.raw ? node.text : encodeHTML(node.text), next) + write(node.raw ? node.text : encodeHTML(String(node.text)), next) } } }