o-html

Declaratively set the .innerHTML of the element the directive is applied to.

Security Note

Dynamically rendering arbitrary HTML on your website can be very dangerous because it can easily lead to XSS attacks. Only use o-html on trusted content and never on user-provided content.

Usage

<span o-component o-html="<strong>Overwritten</strong> content">
    Current content
</span>
Current content