<Html />
can be used to dangerously set HTML in a component.
<Html>
{`<strong style="color: var(--color-new-background)">strong and with styling</strong>`}
</Html>
<Html>
{`
Script tags and style tags are removed automatically!
<script>console.log("Hello world");</script>
<style>body { background-color: red; }</style>
`}
</Html>
<Html replace={[['http://', 'https://']]}>
{`Upgrade to HTTPS: <a href="http://architecture.dpdk.com">Link</a>`}
</Html>
Last modified | Thursday, February 4, 2021, 1:57:48 PM UTC |
Last author | Colin van Eenige |
Commit ID | 3027f87 |