diff --git a/src/compiler/parser/html-parser.js b/src/compiler/parser/html-parser.js index 1b304fbdb6a..7952b903ca8 100644 --- a/src/compiler/parser/html-parser.js +++ b/src/compiler/parser/html-parser.js @@ -35,10 +35,11 @@ const decodingMap = { '"': '"', '&': '&', ' ': '\n', - ' ': '\t' + ' ': '\t', + ''': "'" } -const encodedAttr = /&(?:lt|gt|quot|amp);/g -const encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#10|#9);/g +const encodedAttr = /&(?:lt|gt|quot|amp|#39);/g +const encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#39|#10|#9);/g // #5992 const isIgnoreNewlineTag = makeMap('pre,textarea', true)