mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-19 00:20:33 +03:00
Improve __dangerouslyDisableSanitizers
This commit is contained in:
@@ -97,6 +97,10 @@ export default function _getMetaInfo (options = {}) {
|
||||
const ref = info.__dangerouslyDisableSanitizers
|
||||
const isDisabled = ref && ref.indexOf(key) > -1
|
||||
const val = info[key]
|
||||
escaped[key] = val;
|
||||
if (key === '__dangerouslyDisableSanitizers') {
|
||||
return escaped
|
||||
}
|
||||
if (!isDisabled) {
|
||||
if (typeof val === 'string') {
|
||||
escaped[key] = escapeHTML(val)
|
||||
|
||||
Reference in New Issue
Block a user