Live Chat Icon For mobile
Live Chat Icon

Is there any equivalent of HTML.RAW in Blazor?

Platform: Blazor| Category: General

To render the RAW HTML, wrap the HTML content using MarkupString value, which is rendered into DOM and HTML or SVG.

 @page "/"
 @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

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.