Closed
Description
Question
Consider this code snippet:
HTMLReactParser(`<template><article><p>Test</p></article></template>`);
When using the parser to convert this string with <template>
, the document fragment content for it is empty. The HTML <template>
holds the inner elements within a document fragment and html-react-parser doesn't seem to replicate that data over. Is there any way to get access to that data?
For reference, it should contain this when inspecting the DOM:
Keywords
html, template, document, fragment