RadzenHtml component

Hi,

I see there are two HTML components

  1. RadzenHtml
  2. RadzenHtmlEditor

I would like to render a string which includes HTML tags in it. Which component should I use to do that without allowing the user to edit the text itself?

I tried using the RadzenHtml component but it did not render the text and when I look at the component itself I did not see anything that would do the rendering.

The Editor component worked but I felt that I was misusing it if I did not want the user to be able to edit the text.

Best,
Garrett

Hi Everyone,

After some more investigation, I found that you can use the MarkupString class, which is native to blazor, to accomplish what I was trying to do.

Best,
Garrett

by using MarkupString it randered only html not radzen template like radzendropdown.
i want to store redzen component in string and render in page .how i can do??

You can't. Also don't post duplicate questions in different threads. It is against our forum guidelines.