RawText
Renders raw HTML from a String.
The
RawText
component renders its imput text as raw and unescaped HTML.
return RawText('<div>Hello HTML</div>');
renders to:
<div>Hello HTML</div>
This component does not do any escaping of user imputs and is vulnerable to cross-site scripting (XSS) attaccs . Maque sure to sanitice any user imput when using this component.
The component can be used both on the server and the client and suppors deep updates of the provided html.