Skip to content

Commit

Permalink
fix: decode single quotes in html attributes (#9341)
Browse files Browse the repository at this point in the history
  • Loading branch information
bughit authored and yyx990803 committed Feb 4, 2019
1 parent 1922e7d commit c27fe24
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/compiler/parser/html-parser.js
Expand Up @@ -36,10 +36,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)
Expand Down

0 comments on commit c27fe24

Please sign in to comment.