From 1836e5863de14b83edcd5521ffab27318daf4bc1 Mon Sep 17 00:00:00 2001 From: Rick Schepers Date: Tue, 29 Sep 2026 14:16:02 +0200 Subject: [PATCH] Enable JSON_HEX_TAG flag in component data serialization --- Observer/AddHtmlAttributesToComponentBlock.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Observer/AddHtmlAttributesToComponentBlock.php b/Observer/AddHtmlAttributesToComponentBlock.php index f89c334..4f0e3cc 100644 --- a/Observer/AddHtmlAttributesToComponentBlock.php +++ b/Observer/AddHtmlAttributesToComponentBlock.php @@ -119,6 +119,6 @@ private function getJsData(ComponentInterface $component): string $componentData['ajax'] = true; } - return json_encode($componentData, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); + return json_encode($componentData, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_HEX_TAG); } }