1
0
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:
XhmikosR 2021-10-10 14:49:41 +03:00 committed by GitHub
parent c44d64ed71
commit 24e3ca2474
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}