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);
}
}