What is the Html.Raw equivalent in Blazor?

Blazor Render raw HTML 

Blazor typically renders strings the use of DOM textual content nodes, this means that any markup they will comprise can be not noted and handled as literal textual content. This new characteristic helps you to render unique MarkupString values so one can be parsed as HTML or SVG after which inserted into the DOM.

Example : 


@functions {

    string myMarkup = "<p class='markup'>This is a <em>markup string</em>.</p>";



Post a Comment