完善符号转义
parent
9ed64354fc
commit
664a0e4ad8
|
@ -40,7 +40,14 @@ export const b64DecodeUnicode = str => {
|
|||
}).join(''))
|
||||
}
|
||||
|
||||
export const decodeName = str => str.replace(/'/g, '\'')
|
||||
const encodeNames = {
|
||||
'&': '&',
|
||||
'<': '<',
|
||||
'>': '>',
|
||||
'"': '"',
|
||||
''': "'",
|
||||
}
|
||||
export const decodeName = str => str.replace(/(?:&|<|>|"|')/g, s => encodeNames[s])
|
||||
|
||||
const easeInOutQuad = (t, b, c, d) => {
|
||||
t /= d / 2
|
||||
|
|
Loading…
Reference in New Issue