This code will help you to understand if there is any equivalent of HTML.RAW in Blazor.
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>"; }
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
To render the RAW HTML, wrap the HTML content using MarkupString value, which is rendered into DOM and HTML or SVG.
need an explanation for this answer? contact us directly to get an explanation for this answer