Announcements, Blogs, Releases and much much more...
Raw HTML can be rendered in Blazor by using the MarkupString.
Read more ⟶
You can set the raw HTML as a string to any parameter and cast it in a markup string.
@page "/" @((MarkupString)myMarkup) @code { string myMarkup = "<p class='markup'>This is a <em>markup string</em>.</p> <button class='btn btn-primary'>Button</button>"; }
Created on 12-May-2021 Last updated 23-May-2021