We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09a966d commit 78584dcCopy full SHA for 78584dc
examples/preact/src/layouts/root.layout.js
@@ -49,7 +49,10 @@ export default function defaultRootLayout ({
49
${render(html`
50
<body class="safe-area-inset">
51
<main class="mine-layout app-main">
52
- ${typeof children === 'string' ? html([children]) : children /* Support both uhtml and string children. Optional. */}
+ ${typeof children === 'string'
53
+ ? html`<main class="mine-layout app-main" dangerouslySetInnerHTML="${{ __html: children }}"/>`
54
+ : html`<main class="mine-layout app-main">${children}</main>`
55
+ }
56
</main>
57
</body>
58
`)}
0 commit comments