diff --git a/src/compiler/html-parser.js b/src/compiler/html-parser.js index 65b2571b3..1ed94f584 100644 --- a/src/compiler/html-parser.js +++ b/src/compiler/html-parser.js @@ -37,11 +37,10 @@ export function parse (html, preserveWhiteSpace) { currentParent = stack[stack.length - 1] }, chars (text) { - text = decodeHTML(text) text = currentParent.tag === 'pre' - ? text + ? decodeHTML(text) : text.trim() - ? text + ? decodeHTML(text) : preserveWhiteSpace ? ' ' : null