From: XhmikosR Date: Sun, 10 Oct 2021 11:49:41 +0000 (+0300) Subject: tooltip.js: ignore a LGTM error (#35147) X-Git-Tag: v5.2.0-beta1~465 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24e3ca2474a51f996e9166c065da80b068e8e599;p=thirdparty%2Fbootstrap.git tooltip.js: ignore a LGTM error (#35147) The code on this line is either sanitized or the user chose to not sanitize it. --- 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 }