Render HTML directly into a component in Svelte 3

Share this video with your friends

Send Tweet

Disclaimer: please use this feature carefully.

Sometimes we need to render HTML (that comes from a source that we trust!) directly into a component, for instance when we're using a WYSIWYG editor that we control.

In this quick lesson we're going to learn how to use @html in order to render HTML markup from a textarea into a div element.