diff --git a/resources/templates/tree-container.mustache b/resources/templates/tree-container.mustache
index 3d9acf0..6a38536 100644
--- a/resources/templates/tree-container.mustache
+++ b/resources/templates/tree-container.mustache
@@ -1,5 +1,5 @@
{{#hasItems}}
-
+
{{#body}}{{{.}}}{{/body}}
diff --git a/resources/templates/tree-link-node.mustache b/resources/templates/tree-link-node.mustache
index 2fabcfb..a18cd06 100644
--- a/resources/templates/tree-link-node.mustache
+++ b/resources/templates/tree-link-node.mustache
@@ -3,8 +3,8 @@
{{#expandBtn}}
{{/expandBtn}}
{{text}}
{{#hasChildren}}
-
-
+
+
{{#children}}{{{.}}}{{/children}}
diff --git a/resources/templates/tree-text-node.mustache b/resources/templates/tree-text-node.mustache
index 82e3f45..ad173eb 100644
--- a/resources/templates/tree-text-node.mustache
+++ b/resources/templates/tree-text-node.mustache
@@ -3,8 +3,8 @@
{{#expandBtn}}{{/expandBtn}}{{text}}
{{#hasChildren}}
-
-
+
+
{{#children}}{{{.}}}{{/children}}
diff --git a/src/Renderer/TreeContainer.php b/src/Renderer/TreeContainer.php
index 146d62e..5b97252 100644
--- a/src/Renderer/TreeContainer.php
+++ b/src/Renderer/TreeContainer.php
@@ -53,6 +53,7 @@ public function getRendererDataTreeNode( $component, $subComponentNodes ): array
$aria = $component->getAriaAttributes();
$ariaAttributesBuilder = new AriaAttributesBuilder();
$ariaAttributes = $ariaAttributesBuilder->toString( $aria );
+
$templateData = array_merge(
$templateData,
[
@@ -75,4 +76,13 @@ public function getRendererDataTreeNode( $component, $subComponentNodes ): array
public function getTemplatePathname() : string {
return $this->templateBasePath . '/tree-container.mustache';
}
+
+ /**
+ * `AriaAttributesBuilder` and `DataAttributesBuilder` are already using
+ * `Sanitizer::safeEncodeTagAttributes`
+ * @inheritDoc
+ */
+ protected function getHtmlArmorExcludedFields() {
+ return [ 'aria' ];
+ }
}