@page "/markup-string-example" @((MarkupString)myMarkup) @code { private string myMarkup = "<p class=\"text-danger\">This is a dangerous <em>markup string</em>.</p>"; }
References
https://docs.microsoft.com/en-us/aspnet/core/blazor/components/?view=aspnetcore-6.0#raw-html