Browse Source

ssr: cast node.text to string before encoding

dev
Evan You 8 years ago
parent
commit
65d4ae9d0f
  1. 2
      src/server/render.js

2
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)
}
}
}

Loading…
Cancel
Save