An included component that supports rendering a plaintext string

With sanitization

The default behavior of this component is to render html after stripping any potentially unsafe attributes. This is a good solution for rendering user generated content which may include html.
const paragraphString = '<p>hello world!</p>';

awaitnew RawHtml(paragraphString).Render();

Without sanitization

Passing "false" to the constructor after the string to be rendered explicitly bypasses safe rendering and will allow the string to be rendered regardless of contents. You want to be careful, but this can be a good option when rendering a static string you've defined in your application code.
const renderItAnyway = '<img src="fake" onerror="alert(\'boo\');">';

/* expects an alert */
awaitnew RawHtml(renderItAnyway, false).Render();