RawText

Renders raw HTML from a String.

The RawText component renders its input text as raw and unescaped HTML.

yield RawText('<div>Hello HTML</div>');

renders to:

<div>Hello HTML</div>

This component does not do any escaping of user inputs and is vulnerable to cross-site scripting (XSS) attacks. Make sure to sanitize any user input when using this component.

The component can be used both on the server and the client and supports deep updates of the provided html.