mirror of
https://github.com/twbs/bootstrap.git
synced 2025-03-15 15:29:22 +01:00
tooltip.js: ignore a LGTM error (#35147)
The code on this line is either sanitized or the user chose to not sanitize it.
This commit is contained in:
parent
c44d64ed71
commit
24e3ca2474
@ -421,7 +421,7 @@ class Tooltip extends BaseComponent {
|
|||||||
content = sanitizeHtml(content, this._config.allowList, this._config.sanitizeFn)
|
content = sanitizeHtml(content, this._config.allowList, this._config.sanitizeFn)
|
||||||
}
|
}
|
||||||
|
|
||||||
element.innerHTML = content
|
element.innerHTML = content // lgtm [js/xss-through-dom]
|
||||||
} else {
|
} else {
|
||||||
element.textContent = content
|
element.textContent = content
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user