mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-15 11:59:39 +03: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:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user