Q:

Is there any equivalent of HTML.RAW in Blazor?

0

This code will help you to understand if there is any equivalent of HTML.RAW in Blazor.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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>";
 } 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now