mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-23 19:00:34 +03:00
refactor: prefer destruct syntax
Co-Authored-By: pimlie <pimlie@hotmail.com>
This commit is contained in:
@@ -15,7 +15,7 @@ export default function escape(info, { tagIDKeyName }, escapeSequences = []) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
let disableKey = disableOptionKeys[0]
|
let [ disableKey ] = disableOptionKeys
|
||||||
if (info[disableKey] && info[disableKey].includes(key)) {
|
if (info[disableKey] && info[disableKey].includes(key)) {
|
||||||
// this info[key] doesnt need to escaped if the option is listed in __dangerouslyDisableSanitizers
|
// this info[key] doesnt need to escaped if the option is listed in __dangerouslyDisableSanitizers
|
||||||
escaped[key] = value
|
escaped[key] = value
|
||||||
|
|||||||
Reference in New Issue
Block a user