From 8ec824a8cf06c566ed88e4c21cc66f7ed42649fc Mon Sep 17 00:00:00 2001 From: matx132 Date: Tue, 19 Nov 2024 16:52:00 +0100 Subject: [PATCH] IBX-9181: Changed innerHTML to innerText --- .../Resources/public/js/scripts/helpers/tooltips.helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/Resources/public/js/scripts/helpers/tooltips.helper.js b/src/bundle/Resources/public/js/scripts/helpers/tooltips.helper.js index f9355e687f..a5a6bd0c1e 100644 --- a/src/bundle/Resources/public/js/scripts/helpers/tooltips.helper.js +++ b/src/bundle/Resources/public/js/scripts/helpers/tooltips.helper.js @@ -82,7 +82,7 @@ const modifyPopperConfig = (iframe, defaultBsPopperConfig) => { const getTextHeight = (text, styles) => { const tag = doc.createElement('div'); - tag.innerHTML = text; + tag.innerText = text; for (const key in styles) { tag.style[key] = styles[key];