mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-21 21:40:48 +00: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)
|
||||
}
|
||||
|
||||
element.innerHTML = content
|
||||
element.innerHTML = content // lgtm [js/xss-through-dom]
|
||||
} else {
|
||||
element.textContent = content
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user