From ff894278aff658d400aa43d3f245063b8b09c967 Mon Sep 17 00:00:00 2001 From: Romain Ruaud Date: Tue, 15 Oct 2024 12:14:31 +0200 Subject: [PATCH] Remove CDATA tags in tracker JS. --- .../view/frontend/templates/config.phtml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/module-elasticsuite-tracker/view/frontend/templates/config.phtml b/src/module-elasticsuite-tracker/view/frontend/templates/config.phtml index c13adcb4c..9867de89a 100644 --- a/src/module-elasticsuite-tracker/view/frontend/templates/config.phtml +++ b/src/module-elasticsuite-tracker/view/frontend/templates/config.phtml @@ -38,7 +38,7 @@ if ($block->isEnabled()) { $userConsentScript = $this->escapeJsQuote($block->getUserConsentScript()); $userConsentConfig = $jsonHelper->jsonEncode($block->getUserConsentConfig()); - $scriptString = "//isEnabled()) { $scriptString .= "}"; $scriptString .= "});"; $scriptString .= "}catch(err){;}\n"; - $scriptString .= "//]]>\n"; echo /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false); }