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 :
@((MarkupString)myMarkup)
@functions {
string myMarkup = "<p class='markup'>This is a <em>markup string</em>.</p>";
}
0 Comments
If you have any question please ask?