html-react-parser 3.0.9 → 3.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1007,7 +1007,11 @@
1007
1007
  formatTagName(node.nodeName),
1008
1008
  formatAttributes(node.attributes)
1009
1009
  );
1010
- current.children = formatDOM$1(node.childNodes, current);
1010
+ current.children = formatDOM$1(
1011
+ // template children are on content
1012
+ node.content ? node.content.childNodes : node.childNodes,
1013
+ current
1014
+ );
1011
1015
  break;
1012
1016
 
1013
1017
  case 3: