From 24e3ca2474a51f996e9166c065da80b068e8e599 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Sun, 10 Oct 2021 14:49:41 +0300 Subject: [PATCH] tooltip.js: ignore a LGTM error (#35147) The code on this line is either sanitized or the user chose to not sanitize it. --- js/src/tooltip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/tooltip.js b/js/src/tooltip.js index 423a192c09..7a8986548f 100644 --- a/js/src/tooltip.js +++ b/js/src/tooltip.js @@ -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 }