To render the RAW HTML, wrap the HTML content using MarkupString value, which is rendered into DOM and HTML or SVG.
@page "/"
@((MarkupString)myMarkup)
@code {
private string myMarkup =
"<p class='markup'>This is a <em>markup string</em>.</p>";
}
Refer to the Blazor documentation for more information.
Share with