Html
Html component sanitizes the provided text and renders HTML directly into a component using {@html ...}
tag.
<Html text="Valid HTML: <a target="_blank" href="/">A link</a>." />
<html text="Dangerous HTML: <img src=x onerror=alert('HTML')//>." />
Properties
Property | Description | Type | Default |
---|---|---|---|
text | An html text that should be rendered | string |