diff --git a/src/compiler/parser/index.js b/src/compiler/parser/index.js index 1a54c230..d1c464ee 100644 --- a/src/compiler/parser/index.js +++ b/src/compiler/parser/index.js @@ -22,6 +22,7 @@ const bindRE = /^:|^v-bind:/ const onRE = /^@|^v-on:/ const argRE = /:(.*)$/ const modifierRE = /\.[^\.]+/g +const specialNewlineRE = /\u2028|\u2029/g const decodeHTMLCached = cached(decodeHTML) @@ -223,6 +224,8 @@ export function parse ( text }) } else { + // #3895 special character + text = text.replace(specialNewlineRE, '') currentParent.children.push({ type: 3, text