Browse Source

replace special terminators chars (#3903)

dev
defcc 8 years ago
committed by Evan You
parent
commit
2ee6ef205d
  1. 3
      src/compiler/parser/index.js

3
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

Loading…
Cancel
Save