mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-04 04:57:40 +08:00
fix: decode single quotes in html attributes (#9341)
This commit is contained in:
parent
1922e7d4d9
commit
c27fe24dc6
@ -36,10 +36,11 @@ const decodingMap = {
|
|||||||
'"': '"',
|
'"': '"',
|
||||||
'&': '&',
|
'&': '&',
|
||||||
' ': '\n',
|
' ': '\n',
|
||||||
'	': '\t'
|
'	': '\t',
|
||||||
|
''': "'"
|
||||||
}
|
}
|
||||||
const encodedAttr = /&(?:lt|gt|quot|amp);/g
|
const encodedAttr = /&(?:lt|gt|quot|amp|#39);/g
|
||||||
const encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#10|#9);/g
|
const encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#39|#10|#9);/g
|
||||||
|
|
||||||
// #5992
|
// #5992
|
||||||
const isIgnoreNewlineTag = makeMap('pre,textarea', true)
|
const isIgnoreNewlineTag = makeMap('pre,textarea', true)
|
||||||
|
Loading…
Reference in New Issue
Block a user